Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan D. Brooks2017-08-02 15:12:52 -0400
committerDonald Dunne2017-08-02 20:39:32 -0400
commit42adad881f0340672090c2f87610bfdddc34fe38 (patch)
treed3ed8a688c66cbc08da1cd94c7649245697553d4
parent0d1f68053c13669ec4480fa52e019317af162a4b (diff)
downloadorg.eclipse.osee-42adad881f0340672090c2f87610bfdddc34fe38.tar.gz
org.eclipse.osee-42adad881f0340672090c2f87610bfdddc34fe38.tar.xz
org.eclipse.osee-42adad881f0340672090c2f87610bfdddc34fe38.zip
bug: Persist of tuples only saved first tuple change
-rw-r--r--plugins/org.eclipse.osee.orcs.core/src/org/eclipse/osee/orcs/core/internal/transaction/ChangeSetBuilder.java6
-rw-r--r--plugins/org.eclipse.osee.orcs.core/src/org/eclipse/osee/orcs/core/internal/transaction/TxData.java6
2 files changed, 7 insertions, 5 deletions
diff --git a/plugins/org.eclipse.osee.orcs.core/src/org/eclipse/osee/orcs/core/internal/transaction/ChangeSetBuilder.java b/plugins/org.eclipse.osee.orcs.core/src/org/eclipse/osee/orcs/core/internal/transaction/ChangeSetBuilder.java
index 08d52effb7..e51b56048e 100644
--- a/plugins/org.eclipse.osee.orcs.core/src/org/eclipse/osee/orcs/core/internal/transaction/ChangeSetBuilder.java
+++ b/plugins/org.eclipse.osee.orcs.core/src/org/eclipse/osee/orcs/core/internal/transaction/ChangeSetBuilder.java
@@ -10,6 +10,9 @@
*******************************************************************************/
package org.eclipse.osee.orcs.core.internal.transaction;
+import com.google.common.collect.Sets;
+import java.util.ArrayList;
+import java.util.List;
import java.util.Set;
import org.eclipse.osee.framework.jdk.core.type.OseeCoreException;
import org.eclipse.osee.orcs.core.ds.ArtifactData;
@@ -25,7 +28,6 @@ import org.eclipse.osee.orcs.core.internal.attribute.Attribute;
import org.eclipse.osee.orcs.core.internal.relation.Relation;
import org.eclipse.osee.orcs.core.internal.relation.RelationVisitor;
import org.eclipse.osee.orcs.core.internal.tuple.TupleVisitor;
-import com.google.common.collect.Sets;
/**
* Collect all the dirty OrcsData's into a changeSet;
@@ -76,7 +78,7 @@ public class ChangeSetBuilder implements ArtifactVisitor, RelationVisitor, Tuple
private final Set<ArtifactData> arts = Sets.newLinkedHashSet();
private final Set<AttributeData> attrs = Sets.newLinkedHashSet();
private final Set<RelationData> rels = Sets.newLinkedHashSet();
- private final Set<TupleData> tuples = Sets.newLinkedHashSet();
+ private final List<TupleData> tuples = new ArrayList<>();
@Override
public void accept(OrcsVisitor visitor) throws OseeCoreException {
diff --git a/plugins/org.eclipse.osee.orcs.core/src/org/eclipse/osee/orcs/core/internal/transaction/TxData.java b/plugins/org.eclipse.osee.orcs.core/src/org/eclipse/osee/orcs/core/internal/transaction/TxData.java
index bb95c59fa9..2dc5847d50 100644
--- a/plugins/org.eclipse.osee.orcs.core/src/org/eclipse/osee/orcs/core/internal/transaction/TxData.java
+++ b/plugins/org.eclipse.osee.orcs.core/src/org/eclipse/osee/orcs/core/internal/transaction/TxData.java
@@ -10,10 +10,10 @@
*******************************************************************************/
package org.eclipse.osee.orcs.core.internal.transaction;
+import java.util.ArrayList;
import java.util.HashMap;
-import java.util.HashSet;
+import java.util.List;
import java.util.Map;
-import java.util.Set;
import org.eclipse.osee.framework.core.data.ArtifactId;
import org.eclipse.osee.framework.core.data.BranchId;
import org.eclipse.osee.framework.core.data.HasBranch;
@@ -39,7 +39,7 @@ public class TxData implements HasSession, HasBranch {
private final OrcsSession session;
private final GraphData graph;
- private final Set<TupleData> tuples = new HashSet<>();
+ private final List<TupleData> tuples = new ArrayList<>();
private final Map<String, Artifact> writeables = new HashMap<>();
private final Map<String, ArtifactReadable> readables = new HashMap<>();

Back to the top