I’ve created a PR with the test and fix: https://github.com/hibernate/hibernate-orm/pull/3007. I'm pretty sure this bug applies more generally. I'll work on adding a simpler test case that does not require hibernate.event.merge.entity_copy_observer=allow. |