Fixed equals and hashCode methods of classes in form domain