From: mka Date: Mon, 16 Dec 2013 13:32:15 +0000 (+0000) Subject: Fix problem with deletion of relations X-Git-Tag: V1_0_0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=cd5c9e191646f9c595701fb5534535c9e31108ff;p=tools%2Fsiman.git Fix problem with deletion of relations --- diff --git a/Workspace/Siman-Common/src/org/splat/dal/bo/kernel/Entity.java b/Workspace/Siman-Common/src/org/splat/dal/bo/kernel/Entity.java index 152661b..1b1a50c 100644 --- a/Workspace/Siman-Common/src/org/splat/dal/bo/kernel/Entity.java +++ b/Workspace/Siman-Common/src/org/splat/dal/bo/kernel/Entity.java @@ -173,7 +173,6 @@ public abstract class Entity extends Any { LOG.debug("Nb relations of this before: " + this.getAllRelations().size()); } - res.owner = null; this.getAllRelations().remove(res); if (LOG.isDebugEnabled()) { LOG.debug("Nb relations of this after: " @@ -191,6 +190,7 @@ public abstract class Entity extends Any { + ((Entity) res.getTo()).getAllRelations().size()); } } + res.owner = null; } return res; }