HHH-10664 - Prep 6.0 feature branch - merge hibernate-entitymanager into hibernate-core (autoClear fix)

This commit is contained in:
Steve Ebersole 2016-05-02 09:34:20 -05:00
parent c4378c1c9d
commit 7ce75e4080
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}
}