Regarding overriding of hashcode() and equals() method in Hibernate.
posted 7 years ago
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.