HHH-13672 The temporary PersistenceContext of a StatelessSession is not cleared after a refresh operation
This commit is contained in:
parent
43402ea51c
commit
96e7abf80b
|
@ -249,6 +249,9 @@ public class StatelessSessionImpl extends AbstractSharedSessionContract implemen
|
|||
this.getLoadQueryInfluencers().setInternalFetchProfile( previousFetchProfile );
|
||||
}
|
||||
UnresolvableObjectException.throwIfNull( result, id, persister.getEntityName() );
|
||||
if ( temporaryPersistenceContext.isLoadFinished() ) {
|
||||
temporaryPersistenceContext.clear();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue