-----Original Message-----
From: Peter Rader
Sent: Sunday, April 12, 2020 2:53 AM
Hi Jason,
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.
<snip/>
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
hibernate-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-users