mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-16 16:15:06 +00:00
HHH-7518
This commit is contained in:
parent
072e64d26a
commit
401d4902fd
@ -149,7 +149,7 @@ private SessionFactory locateSessionFactory() {
|
||||
throw new RuntimeException( "Expected 'sessionFactoryMap' field on " + SessionFactoryRegistry.class.getName() );
|
||||
}
|
||||
instancesField.setAccessible( true );
|
||||
Map map = (Map) instancesField.get( null );
|
||||
Map map = (Map) instancesField.get( SessionFactoryRegistry.INSTANCE );
|
||||
if ( map == null ) {
|
||||
return null;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user