• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Regarding overriding of hashcode() and equals() method in Hibernate.

 
Tusshar Fasate
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does this answer your question ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic