Generate equals() and hashcode() action