mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-28 06:49:09 +00:00
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 void afterTransactionCompletion(boolean successful, boolean delayed) {
|
||||
log.tracef( "SessionImpl#afterTransactionCompletion(successful=%s, delayed=%s)", successful, delayed );
|
||||
|
||||
if ( !isClosed() ) {
|
||||
if ( autoClear ) {
|
||||
if ( autoClear ||!successful ) {
|
||||
internalClear();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user