]> SALOME platform Git repositories - tools/siman.git/blobdiff - Workspace/Siman/src/org/splat/simer/OpenObject.java
Salome HOME
Id now is Long instead of Integer. First unit test is created. hibernate-3.5.jar...
[tools/siman.git] / Workspace / Siman / src / org / splat / simer / OpenObject.java
index b00ad00f71a7e597f2d340ada6d3482521e1bf5b..465b4fc8847c665c17afe7cf8ae2b80f809a1de6 100644 (file)
@@ -37,8 +37,8 @@ public abstract class OpenObject implements Proxy {
        private ProjectSettingsService _projectSettingsService;
        private PublicationService _publicationService;
 
-    protected static HashMap<Integer, DocumentFacade>         docpres  = null;
-    protected static HashMap<Integer, KnowledgeElementFacade> knowpres = null;
+    protected static HashMap<Long, DocumentFacade>         docpres  = null;
+    protected static HashMap<Long, KnowledgeElementFacade> knowpres = null;
 
        public class KnowledgeIterator {
 //  ------------------------------
@@ -71,8 +71,8 @@ public abstract class OpenObject implements Proxy {
     protected OpenObject () {
 //  -----------------------
 //    All member fields are supposed initialized by subclasses 
-      if (docpres == null)  docpres  = new HashMap<Integer, DocumentFacade>();
-      if (knowpres == null) knowpres = new HashMap<Integer, KnowledgeElementFacade>();
+      if (docpres == null)  docpres  = new HashMap<Long, DocumentFacade>();
+      if (knowpres == null) knowpres = new HashMap<Long, KnowledgeElementFacade>();
     }
 
 //  ==============================================================================================================================
@@ -254,7 +254,7 @@ public abstract class OpenObject implements Proxy {
         contents = new Vector<DocumentFacade>(list.size());
         for (Iterator<Publication> i=list.iterator(); i.hasNext();) {
           Publication     present = i.next();
-          Integer         index   = present.getIndex();
+          Long         index   = present.getIndex();
           DocumentFacade  facade  = docpres.get(index);
           if (facade == null) {
             facade = new DocumentFacade(this, present, getProjectSettings(), getPublicationService());