I'm trying to migrate from 4.3 to 5.1 using the new bytecode enhancer.
Given a class Foo with a collection of Bars with orphanRemoval=true, even just accessing the collection results in an exception:
A collection with cascade="all-delete-orphan" was no longer referenced by the owning entity instance: org.hibernate.test.bytecodeissue.Foo.bar
See attached test case.
Works fine in test case when I set doDirtyCheckingInline to false in the EnhancementTask, but in our app that needs to be migrated, I encounter the same issue with disabled dirty checking.
Everything works fine without bytecode instrumentation. |
|