#1669 - When deleting complex object graphs, entities are deleted multiple times

Fix by not unregistering the deleted bean hash in the transaction so that
the skip occurs on other root level bean traversals (the delete of the
2nd master bean)
This commit is contained in:
rob bygrave committed 2019-04-09 20:30:17 +12:00
1 parent 2430404e1f
commit 1c6fa575f2
7 files changed
-36

No files matched your search

@@ -882,7 +882,6 @@ public final class DefaultPersister implements Persister {
// bean to handle bi-directional cascading
request.registerDeleteBean();
deleteAssocMany(request);
request.unregisterDeleteBean();
unloadedForeignKeys = getDeleteUnloadedForeignKeys(request);
if (unloadedForeignKeys != null) {