HHH-6419 Let SessionImplementor#getFactory pass even out of Tx in TL bound sessions

This commit is contained in:
Emmanuel Bernard 2011-07-08 01:40:53 +02:00
parent c48d4208db
commit c5e91f6bda
1 changed files with 1 additions and 0 deletions

View File

@ -333,6 +333,7 @@ public class ThreadLocalSessionContext implements CurrentSessionContext {
|| "getTransaction".equals( method.getName() )
|| "isTransactionInProgress".equals( method.getName() )
|| "setFlushMode".equals( method.getName() )
|| "getFactory".equals( method.getName() ) //from SessionImplementor
|| "getSessionFactory".equals( method.getName() ) ) {
LOG.trace("Allowing method [" + method.getName() + "] in non-transacted context");
}