mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-13 14:44:48 +00:00
Fix error causing ClearEventListenerTest failure
This commit is contained in:
parent
d34153f52e
commit
44efc0162e
@ -2259,8 +2259,8 @@ public void afterTransactionCompletion(boolean successful, boolean delayed) {
|
||||
log.tracef( "SessionImpl#afterTransactionCompletion(successful=%s, delayed=%s)", successful, delayed );
|
||||
|
||||
if ( !isClosed() ) {
|
||||
if ( !successful && autoClear ) {
|
||||
clear();
|
||||
if ( autoClear ) {
|
||||
internalClear();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user