From f245116e4880c1b57463186997abba5f7bb97ad0 Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Sun, 10 Feb 2013 16:14:32 -0300 Subject: [PATCH] Fix deleted object would be re-saved by cascade (remove deleted object from associations): [com.wisemapping.model.Collaboration#114902]; nested exception is org.hibernate.ObjectDeletedException: deleted object would be re-saved by cascade (remove deleted object from associations): [com.wisemapping.model.Collaboration#114902] --- .../main/java/com/wisemapping/service/MindmapServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wise-webapp/src/main/java/com/wisemapping/service/MindmapServiceImpl.java b/wise-webapp/src/main/java/com/wisemapping/service/MindmapServiceImpl.java index 1c69040f..e4fc70f8 100755 --- a/wise-webapp/src/main/java/com/wisemapping/service/MindmapServiceImpl.java +++ b/wise-webapp/src/main/java/com/wisemapping/service/MindmapServiceImpl.java @@ -122,8 +122,8 @@ public class MindmapServiceImpl } // When you delete an object from hibernate you have to delete it from *all* collections it exists in... - mindmapManager.removeCollaboration(collaboration); collaborations.remove(collaboration); + mindmapManager.removeCollaboration(collaboration); } @Override