|
http://hibernate.org/orm/contribute/ explains how to checkout from github but does not explain how to upload the contribution. Should I do a fork? Should I create a branch for a patch? This is not clear from what is written there. Seems there are special rights needed to upload to hibernate-orm github repository.
Changing code like this should be much better readable and extendable to more fields.
/documentation/src/main/docbook/userGuide/en-US/chapters/domain/extras/listing9.java
@Override public int hashCode() { return java.util.Objects.hash(ssn); }
@Override public boolean equals(Object rhs) { /** * A proxy class does not compare well. So we first have to get the real * class */ if (rhs == null || Hibernate.getClass(this) != Hibernate.getClass(rhs)) return false; Person that = (Person) rhs; if (!java.util.Objects.equals(ssn, that.ssn)) return false; return true; }
|