hibernate.org - Equals and HashCode

« back
https://www.hibernate.org/109.html
Java's Collections and Relational database (and thus Hibernate) relies heavily on being able to distinguish objects in a unified way. In Relational database's this is done with primary keys, in Java we have equals() and hashCode() methods on the objects. This page tries to discuss the best strategies for implementation of equals() and hashcode() in your persistent classes.
discovered on 06/23/2009 | Last saved on 06/23/2009 | Saved private: 0 x

Public saved from

oneview member: MrJava
MrJava

Comments

 
To add a comment or an answer, you need to login