I have an entity with a parent child relationship:
When merging a detached entity with the session, the session is marked as dirty:
It seems that the children collection is the source of the dirty flag. No matter if I initialize the children collection or not - it is triggering the "dirty" flag.
The problem does not exist with bytecode enhancement (as expected, as in that case the instance itself knows what is dirty)