Equals and hashcode how to for Hibernate and JPA in general


This morning I was manually writing a Hibernate bean and, when I got to question myself whether or not implementing equals and hashcode, I stumbled upon quite a few dilemmas: shall I create them at all? (well yeah coz you want to use them in collections and the comparison between two objects should rely upon … Continue reading Equals and hashcode how to for Hibernate and JPA in general