Fixed equals and hashCode methods of classes in data domain