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

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

View File

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