]> SALOME platform Git repositories - tools/siman.git/blobdiff - Workspace/Siman-Common/src/org/splat/dal/bo/kernel/Relation.java
Salome HOME
app.root property is removed.
[tools/siman.git] / Workspace / Siman-Common / src / org / splat / dal / bo / kernel / Relation.java
index b176ad0d0d2464d694763053959cb39879e5be70..1ee3833e7b3a614c97c57bd0fe6d029e9f4f5e00 100644 (file)
@@ -85,20 +85,15 @@ public abstract class Relation extends Any {
  * @param nowner the document to which this relation is moved
  * */
     public void moveTo (Entity nowner) {
-       //RKV      Session  session = Database.getCurSession();
 
       Entity oldOwner = this.owner;
       this.owner = nowner;
       nowner.getAllRelations().add(this);
       oldOwner.getAllRelations().remove(this);
-//    myold.getAllRelations().remove(this);  Harmful as it leads to remove this relation from the database (!?)
-    //RKV      session.update(this);
-    //RKV      session.update(nowner);
 
       if (this.isBidirectional()) {
        Relation  link = this.getReverse();
        link.setTo(nowner);
-       //RKV  session.update(link);
       }
     }