HHH-7205: Added catching exception for executing session.get when session cache contains proxy for non-existing object
This commit is contained in:
parent
acd7c3046f
commit
9f215c8475
|
@ -2550,11 +2550,14 @@ public final class SessionImpl extends AbstractSessionImpl implements EventSourc
|
||||||
try {
|
try {
|
||||||
fireLoad( event, LoadEventListener.GET );
|
fireLoad( event, LoadEventListener.GET );
|
||||||
success = true;
|
success = true;
|
||||||
return event.getResult();
|
}
|
||||||
|
catch (ObjectNotFoundException e) {
|
||||||
|
// if session cache contains proxy for non-existing object
|
||||||
}
|
}
|
||||||
finally {
|
finally {
|
||||||
afterOperation( success );
|
afterOperation( success );
|
||||||
}
|
}
|
||||||
|
return event.getResult();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue