Testcase: https://github.com/heruan/hibernate-testcase/tree/HHH-11414 Since I do not know how to test inside entity listener, the test just prints into console the output of the map size before merge (1, correct), inside listener (0, wrong) and after merge (1, correct). |