HHH-7880 - SessionFactory.openStatelessSession() does not respect tenant identifier from CurrentTenantIdentifierResolver
This commit is contained in:
parent
b455b2ddc9
commit
cf8113d54a
|
@ -1683,6 +1683,10 @@ public final class SessionFactoryImpl
|
|||
|
||||
public StatelessSessionBuilderImpl(SessionFactoryImpl sessionFactory) {
|
||||
this.sessionFactory = sessionFactory;
|
||||
|
||||
if ( sessionFactory.getCurrentTenantIdentifierResolver() != null ) {
|
||||
tenantIdentifier = sessionFactory.getCurrentTenantIdentifierResolver().resolveCurrentTenantIdentifier();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue