Fix StatelessSession#uniqueResult() not clearing the temporary PersistenceContext
This commit is contained in:
parent
4eb27e61b1
commit
ba5d90d116
|
@ -537,6 +537,7 @@ public class StatelessSessionImpl extends AbstractSharedSessionContract implemen
|
|||
// }
|
||||
|
||||
public void afterOperation(boolean success) {
|
||||
temporaryPersistenceContext.clear();
|
||||
if ( !isTransactionInProgress() ) {
|
||||
getJdbcCoordinator().afterTransaction();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue