Unfortunately i can't give you test because it is beeing thrown in our project with a little bit complicated Object structure (BO) and it occurs only from time to time.
Anyway, this patch is WORTH TO BE ADDED. Thank you
The initial test was committed with some modification which prevented bug to be exposed.
Jenar
June 10, 2013 at 12:38 PM
I think this exception could happend if mapping for Object_A will somehow contain a collection ie. <BAG> with the same Object_A. And you will try to Evict Object_A
In rev 3.2.0 and 3.3.3 i am still getting this Exception (as already reported in closed NH-1845, because test could not reproduce it):
So please add this path to next release as suggested long time ago in https://forum.hibernate.org/viewtopic.php?f=25&t=993443&view=previous
Unfortunately i can't give you test because it is beeing thrown in our project with a little bit complicated Object structure (BO) and it occurs only from time to time.
Anyway, this patch is WORTH TO BE ADDED.
Thank you