Skip to content

Commit

Permalink
HHH-7880 - SessionFactory.openStatelessSession() does not respect ten…
Browse files Browse the repository at this point in the history
…ant identifier from CurrentTenantIdentifierResolver
  • Loading branch information
sebersole committed Apr 15, 2013
1 parent b455b2d commit cf8113d
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -1683,6 +1683,10 @@ public static class StatelessSessionBuilderImpl implements StatelessSessionBuild

public StatelessSessionBuilderImpl(SessionFactoryImpl sessionFactory) {
this.sessionFactory = sessionFactory;

if ( sessionFactory.getCurrentTenantIdentifierResolver() != null ) {
tenantIdentifier = sessionFactory.getCurrentTenantIdentifierResolver().resolveCurrentTenantIdentifier();
}
}

@Override
Expand Down

0 comments on commit cf8113d

Please sign in to comment.