Fix issue with getMetamodel() called before its initialization
This commit is contained in:
parent
4f72bd0cef
commit
da4ee5bbac
|
@ -282,16 +282,14 @@ public final class SessionFactoryImpl implements SessionFactoryImplementor {
|
||||||
identifierGenerators.put( model.getEntityName(), generator );
|
identifierGenerators.put( model.getEntityName(), generator );
|
||||||
} );
|
} );
|
||||||
|
|
||||||
|
|
||||||
//Named Queries:
|
|
||||||
this.namedQueryRepository = metadata.buildNamedQueryRepository( this );
|
|
||||||
|
|
||||||
|
|
||||||
LOG.debug( "Instantiated session factory" );
|
LOG.debug( "Instantiated session factory" );
|
||||||
|
|
||||||
this.metamodel = new MetamodelImpl( this );
|
this.metamodel = new MetamodelImpl( this );
|
||||||
this.metamodel.initialize( metadata, determineJpaMetaModelPopulationSetting( properties ) );
|
this.metamodel.initialize( metadata, determineJpaMetaModelPopulationSetting( properties ) );
|
||||||
|
|
||||||
|
//Named Queries:
|
||||||
|
this.namedQueryRepository = metadata.buildNamedQueryRepository( this );
|
||||||
|
|
||||||
settings.getMultiTableBulkIdStrategy().prepare(
|
settings.getMultiTableBulkIdStrategy().prepare(
|
||||||
jdbcServices,
|
jdbcServices,
|
||||||
buildLocalConnectionAccess(),
|
buildLocalConnectionAccess(),
|
||||||
|
|
Loading…
Reference in New Issue