From: Peter Rader
Sent: Sunday, April 12, 2020 2:53 AM
I guess a second thread could meanwhile remove the entity from the database using the
Should have stated some assumptions.
1. single threaded
2. manual examination of table's rows, shows the row present.
entitymanager. This way the entity is removed from the database,
evited in the cache and
the proxy of the entity is decoupled from the session (hibernate-session in example)
Thanks, I do have a more complete/specific test case attached to the HHH-13941 ticket. It
fails against ever 5.x and 4.x version I throw at it.
Gesendet: Sonntag, 12. April 2020 um 03:48 Uhr
Von: "Jason Pyeron"
if (em.contains(o) && null!=em.find(o.getClass(),o.getId()))
em.refresh(o); // throwing EntityNotFoundException
This should never be possible, right?
hibernate-users mailing list