File tree Expand file tree Collapse file tree 1 file changed +0
-18
lines changed
hibernate-core/src/main/java/org/hibernate/engine/spi Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Original file line number Diff line number Diff line change @@ -71,24 +71,6 @@ public EntityKey(Serializable id, EntityPersister persister) {
71
71
this .hashCode = generateHashCode ();
72
72
}
73
73
74
- /**
75
- * Used to reconstruct an EntityKey during deserialization. Note that this constructor
76
- * is used only in very specific situations: the SessionFactory isn't actually available
77
- * and so both equals and hashcode implementations can't be implemented correctly.
78
- *
79
- * @param identifier The identifier value
80
- * @param persister The EntityPersister
81
- * @param hashCode The hashCode needs to be provided as it can't be calculated correctly without the SessionFactory.
82
- */
83
- private EntityKey (Serializable identifier , EntityPersister persister , int hashCode ) {
84
- this .persister = persister ;
85
- if ( identifier == null ) {
86
- throw new AssertionFailure ( "null identifier" );
87
- }
88
- this .identifier = identifier ;
89
- this .hashCode = hashCode ;
90
- }
91
-
92
74
private int generateHashCode () {
93
75
int result = 17 ;
94
76
result = 37 * result + persister .getIdentifierType ().getHashCode ( identifier , persister .getFactory () );
You can’t perform that action at this time.
0 commit comments