How hibernate uses equals() and hashCode()?

Please see Equals and HashCode from the JBoss Community website. From there.

Please see Equals and HashCode from the JBoss Community website. From there: To avoid this problem we recommend using the "semi"-unique attributes of your persistent class to implement equals() (and hashCode()). Basically you should think of your database identifier as not having business meaning at all (remember, surrogate identifier attributes and automatically generated vales are recommended anyway).

The database identifier property should only be an object identifier, and basically should be used by Of course, you may also use the database identifier as a convenient read-only handle, e.g. To build links in web applications. In other words, bernate uses equals and hashCode for identity, not to see if an object has been modified.It uses attribute by attribute comparisons for that.

Not an but you may find this section of manual enlightening.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions