| Author |
Regarding overriding of hashcode() and equals() method in Hibernate.
|
Tusshar Fasate
Ranch Hand
Joined: May 21, 2008
Posts: 81
|
|
Hi,
I want to know that Why do we override hashcode() and equals() methods in domain object?
And I saw in only certain cases we override them and not in all domain classes,so When should we override them in domain?
Please answer my queries.
Thanks
|
 |
Christophe Verré
Sheriff
Joined: Nov 24, 2005
Posts: 14672
|
|
|
Does this answer your question ?
|
[My Blog]
All roads lead to JavaRanch
|
 |
 |
|
|
subject: Regarding overriding of hashcode() and equals() method in Hibernate.
|
|
|