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.

1 members have saved this link, 1 have saved it publicly

oneviewer 1 - 1 of 1 | page 1  
oneview member: MrJava
Description: 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. MrJava has no comment comment about this information | Links saved: yes
oneviewer 1 - 1 of 1 | page 1