diff --git a/hibernate-core/src/main/java/org/hibernate/context/internal/ThreadLocalSessionContext.java b/hibernate-core/src/main/java/org/hibernate/context/internal/ThreadLocalSessionContext.java index 006979a8c3..ea61b6ea02 100644 --- a/hibernate-core/src/main/java/org/hibernate/context/internal/ThreadLocalSessionContext.java +++ b/hibernate-core/src/main/java/org/hibernate/context/internal/ThreadLocalSessionContext.java @@ -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"); }