HHH-10664 - Prep 6.0 feature branch - merge hibernate-entitymanager into hibernate-core (autoClear fix)
This commit is contained in:
parent
c4378c1c9d
commit
7ce75e4080
|
@ -2346,7 +2346,7 @@ public final class SessionImpl
|
|||
log.tracef( "SessionImpl#afterTransactionCompletion(successful=%s, delayed=%s)", successful, delayed );
|
||||
|
||||
if ( !isClosed() ) {
|
||||
if ( autoClear ) {
|
||||
if ( autoClear ||!successful ) {
|
||||
internalClear();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue