It worked fine till version 5.4.10.Final, but with beginning with 5.4.11.Final stopped working. Just for information: we found one change related to that in 5.4.11 is
The problems happens in unit test. We delete data from parent and from child entities. Both uses Envers.
The definition of relation to parent in child:
Hibernate deletes parent entity. Then Envers during processing of child entity tries to find the parent in database (it is also not in cache any more) and throws ObjectNotFoundException:
It worked find for the last 5 years and stopped to work now.
Following newly added in 5.4.10 lines of code from ToOneIdMapper causes a problem:
Thanks & best regards.
JDK 8, Win, OracleDB