HHH-7880 - SessionFactory.openStatelessSession() does not respect tenant identifier from CurrentTenantIdentifierResolver

This commit is contained in:
Steve Ebersole 2013-04-15 14:50:43 -05:00
parent 1af9724692
commit cbfa233ea1
1 changed files with 4 additions and 0 deletions

View File

@ -1626,6 +1626,10 @@ public final class SessionFactoryImpl
public StatelessSessionBuilderImpl(SessionFactoryImpl sessionFactory) {
this.sessionFactory = sessionFactory;
if ( sessionFactory.getCurrentTenantIdentifierResolver() != null ) {
tenantIdentifier = sessionFactory.getCurrentTenantIdentifierResolver().resolveCurrentTenantIdentifier();
}
}
@Override