I made some "save" bean functions in my Java web application (JSF1.2, RichFaces). It uses JAXB to turn it into an XML string, and then it is stored in the database. If the user downloads it back, I want to notify the user if the content (bean) is changed and it needs to be saved again.
My idea is to override the hashCode() 'function with org.apache.commons.lang.builder.HashCodeBuilder , however, I have many fields and children. Is there any other way to deal with such features?
EDIT
The βcomparisonβ is performed in a different view!
Any help would be appreciated!
source share