]> SALOME platform Git repositories - tools/siman.git/blobdiff - Workspace/Siman-Common/src/org/splat/dal/bo/kernel/Relation.java
Salome HOME
Refactoring continues: UserService is created instead of UserDirectory. Database...
[tools/siman.git] / Workspace / Siman-Common / src / org / splat / dal / bo / kernel / Relation.java
index 9d8d22df54beddf8b511af3b1dd57bc22a41fe2f..9f8964fb6bb8dd1ea392d57e53a663f5a8c72066 100644 (file)
@@ -18,10 +18,6 @@ package org.splat.dal.bo.kernel;
 
 import java.util.Iterator;
 
-import org.hibernate.Session;
-import org.splat.dal.dao.kernel.Database;
-
-
 public abstract class Relation extends Any {
 
 //  Persistent fields
@@ -90,19 +86,18 @@ public abstract class Relation extends Any {
  * @param nowner the document to which this relation is moved
  * */
     public void moveTo (Entity nowner) {
-//  ----------------------------------
-      Session  session = Database.getSession();
+       //RKV      Session  session = Database.getCurSession();
 
       this.owner = nowner;
       nowner.getAllRelations().add(this);
 //    myold.getAllRelations().remove(this);  Harmful as it leads to remove this relation from the database (!?)
-      session.update(this);
-      session.update(nowner);
+    //RKV      session.update(this);
+    //RKV      session.update(nowner);
 
       if (this.isBidirectional()) {
        Relation  link = this.getReverse();
        link.setTo(nowner);
-       session.update(link);
+       //RKV  session.update(link);
       }
     }