Fix StatelessSession#uniqueResult() not clearing the temporary PersistenceContext

This commit is contained in:
Andrea Boriero 2021-07-14 09:30:35 +02:00
parent 4eb27e61b1
commit ba5d90d116
1 changed files with 1 additions and 0 deletions

View File

@ -537,6 +537,7 @@ public class StatelessSessionImpl extends AbstractSharedSessionContract implemen
// }
public void afterOperation(boolean success) {
temporaryPersistenceContext.clear();
if ( !isTransactionInProgress() ) {
getJdbcCoordinator().afterTransaction();
}