Make sure all JPA entities implement equals and hashcode