When bytecode enhancement is enabled a change to a property in a mapped superclass does not mark the entity dirty. Subsequently that change is not persisted. Find attached a test case. Run with "mvn test". The change to setParentValue() does not get applied on flush. When enhancement is turned off, the test case works as expected.
The generated methods in the mapped superclass do not delegate to any dirty tracker. I would expect that e.g. the entity overrides the superclass methods and in there delegates to its dirty tracker. |