Most of you already know about the standard way to implement equals and hashCode for a class. As an example lets consider a User class public class User {private Long id;private String name;private String address;} If we consider Id as unique identifier for logical equality of users then the equals and hashCode method can be …
Continue reading “Equals implementation for Lazy loaded objects in Hibernate”