HHH-6419 Let SessionImplementor#getFactory pass even out of Tx in TL bound sessions
This commit is contained in:
parent
c48d4208db
commit
c5e91f6bda
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue