File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
hibernate-core/src/main/java/org/hibernate/tuple/entity Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ public class EntityMetamodel implements Serializable {
83
83
84
84
private final String name ;
85
85
private final String rootName ;
86
- private EntityType entityType ;
86
+ private final EntityType entityType ;
87
87
88
88
private final int subclassId ;
89
89
private final IdentifierProperty identifierAttribute ;
@@ -175,6 +175,8 @@ public EntityMetamodel(
175
175
//noinspection ResultOfMethodCallIgnored
176
176
rootName .hashCode ();
177
177
178
+ entityType = new ManyToOneType ( name , creationContext .getTypeConfiguration () );
179
+
178
180
subclassId = persistentClass .getSubclassId ();
179
181
180
182
identifierAttribute =
@@ -755,9 +757,6 @@ public int getSubclassId() {
755
757
}
756
758
757
759
public EntityType getEntityType () {
758
- if ( entityType == null ) {
759
- entityType = new ManyToOneType ( name , getSessionFactory ().getTypeConfiguration () );
760
- }
761
760
return entityType ;
762
761
}
763
762
You can’t perform that action at this time.
0 commit comments