HHH-7205: Added catching exception for executing session.get when session cache contains proxy for non-existing object

This commit is contained in:
akotlyarov 2014-01-25 22:40:16 +02:00 committed by Brett Meyer
parent 4bb52196f1
commit c12963ae54
1 changed files with 4 additions and 1 deletions

View File

@ -2550,11 +2550,14 @@ public final class SessionImpl extends AbstractSessionImpl implements EventSourc
try {
fireLoad( event, LoadEventListener.GET );
success = true;
return event.getResult();
}
catch (ObjectNotFoundException e) {
// if session cache contains proxy for non-existing object
}
finally {
afterOperation( success );
}
return event.getResult();
}
}