HHH-8878 Remove some dead code

This commit is contained in:
Sanne Grinovero 2014-02-26 01:45:46 +00:00 committed by Brett Meyer
parent b644b515ef
commit 28738c1e20
1 changed files with 0 additions and 18 deletions

View File

@ -71,24 +71,6 @@ public final class EntityKey implements Serializable {
this.hashCode = generateHashCode(); this.hashCode = generateHashCode();
} }
/**
* Used to reconstruct an EntityKey during deserialization. Note that this constructor
* is used only in very specific situations: the SessionFactory isn't actually available
* and so both equals and hashcode implementations can't be implemented correctly.
*
* @param identifier The identifier value
* @param persister The EntityPersister
* @param hashCode The hashCode needs to be provided as it can't be calculated correctly without the SessionFactory.
*/
private EntityKey(Serializable identifier, EntityPersister persister, int hashCode) {
this.persister = persister;
if ( identifier == null ) {
throw new AssertionFailure( "null identifier" );
}
this.identifier = identifier;
this.hashCode = hashCode;
}
private int generateHashCode() { private int generateHashCode() {
int result = 17; int result = 17;
result = 37 * result + persister.getIdentifierType().getHashCode( identifier, persister.getFactory() ); result = 37 * result + persister.getIdentifierType().getHashCode( identifier, persister.getFactory() );