mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-13 22:54:51 +00:00
HHH-7205: Added catching exception for executing session.get when session cache contains proxy for non-existing object
This commit is contained in:
parent
9069b4776d
commit
74e926c9d5
@ -2412,11 +2412,14 @@ public final Object load(Serializable id) {
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user