HHH-13611 : Restore EntityMetamodel constructor to take SessionFactoryImplementor argument instead of PersisterCreationContext
This commit is contained in:
parent
996e60f685
commit
af3231820a
|
@ -556,7 +556,7 @@ public abstract class AbstractEntityPersister
|
||||||
this.naturalIdRegionAccessStrategy = null;
|
this.naturalIdRegionAccessStrategy = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.entityMetamodel = new EntityMetamodel( persistentClass, this, creationContext.getSessionFactory() );
|
this.entityMetamodel = new EntityMetamodel( persistentClass, this, factory );
|
||||||
this.entityTuplizer = this.entityMetamodel.getTuplizer();
|
this.entityTuplizer = this.entityMetamodel.getTuplizer();
|
||||||
|
|
||||||
if ( entityMetamodel.isMutable() ) {
|
if ( entityMetamodel.isMutable() ) {
|
||||||
|
|
|
@ -71,7 +71,7 @@ public class CustomPersister implements EntityPersister {
|
||||||
NaturalIdDataAccess naturalIdRegionAccessStrategy,
|
NaturalIdDataAccess naturalIdRegionAccessStrategy,
|
||||||
PersisterCreationContext creationContext) {
|
PersisterCreationContext creationContext) {
|
||||||
this.factory = creationContext.getSessionFactory();
|
this.factory = creationContext.getSessionFactory();
|
||||||
this.entityMetamodel = new EntityMetamodel( model, this, creationContext.getSessionFactory() );
|
this.entityMetamodel = new EntityMetamodel( model, this, factory );
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean hasLazyProperties() {
|
public boolean hasLazyProperties() {
|
||||||
|
|
Loading…
Reference in New Issue