Skip to content

Commit 89068ea

Browse files
committed
Merge pull request hibernate#12 from dreab8/HHH-10664_ClearEventListenerTest
Fix error causing ClearEventListenerTest failure
2 parents d22bd95 + b69b1a2 commit 89068ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hibernate-core/src/main/java/org/hibernate/internal/SessionImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2259,8 +2259,8 @@ public void afterTransactionCompletion(boolean successful, boolean delayed) {
22592259
log.tracef( "SessionImpl#afterTransactionCompletion(successful=%s, delayed=%s)", successful, delayed );
22602260

22612261
if ( !isClosed() ) {
2262-
if ( !successful && autoClear ) {
2263-
clear();
2262+
if ( autoClear ) {
2263+
internalClear();
22642264
}
22652265
}
22662266

0 commit comments

Comments
 (0)