change "Long" on "long"
MODE-1740 Updated entity hashCode() and equals() methods to handle null IDs

These changes correct the hashCode and equals methods on three Entity
classes so that these methods work when the entity IDs (which are
configured to be automatically set by JPA) have not yet been set.