diff --git a/hibernate-core/src/main/java/org/hibernate/internal/StatelessSessionImpl.java b/hibernate-core/src/main/java/org/hibernate/internal/StatelessSessionImpl.java index 9b1c26b1bc..5e9928feba 100755 --- a/hibernate-core/src/main/java/org/hibernate/internal/StatelessSessionImpl.java +++ b/hibernate-core/src/main/java/org/hibernate/internal/StatelessSessionImpl.java @@ -537,6 +537,7 @@ public class StatelessSessionImpl extends AbstractSharedSessionContract implemen // } public void afterOperation(boolean success) { + temporaryPersistenceContext.clear(); if ( !isTransactionInProgress() ) { getJdbcCoordinator().afterTransaction(); }