mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-17 00:24:57 +00:00
Fix issue with getMetamodel() called before its initialization
This commit is contained in:
parent
4f72bd0cef
commit
da4ee5bbac
@ -282,16 +282,14 @@ public void sessionFactoryClosed(SessionFactory factory) {
|
||||
identifierGenerators.put( model.getEntityName(), generator );
|
||||
} );
|
||||
|
||||
|
||||
//Named Queries:
|
||||
this.namedQueryRepository = metadata.buildNamedQueryRepository( this );
|
||||
|
||||
|
||||
LOG.debug( "Instantiated session factory" );
|
||||
|
||||
this.metamodel = new MetamodelImpl( this );
|
||||
this.metamodel.initialize( metadata, determineJpaMetaModelPopulationSetting( properties ) );
|
||||
|
||||
//Named Queries:
|
||||
this.namedQueryRepository = metadata.buildNamedQueryRepository( this );
|
||||
|
||||
settings.getMultiTableBulkIdStrategy().prepare(
|
||||
jdbcServices,
|
||||
buildLocalConnectionAccess(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user