[AAI-178 Amsterdam] Make Edge Properties to be 45/7745/1
authorMaharajh, Robby (rx2202) <rx2202@us.att.com>
Wed, 16 Aug 2017 14:54:45 +0000 (10:54 -0400)
committerMaharajh, Robby (rx2202) <rx2202@us.att.com>
Wed, 16 Aug 2017 14:55:22 +0000 (10:55 -0400)
declared by direction

Change-Id: I7603ebdc4986caccd7c8be7e62769765e805c4b2
Signed-off-by: Maharajh, Robby (rx2202) <rx2202@us.att.com>
aai-resources/src/main/java/org/openecomp/aai/dbgen/ForceDeleteTool.java

index 1cab272..0cd0531 100644 (file)
@@ -31,7 +31,7 @@ import org.apache.tinkerpop.gremlin.structure.Edge;
 import org.apache.tinkerpop.gremlin.structure.Vertex;
 import org.apache.tinkerpop.gremlin.structure.VertexProperty;
 import org.openecomp.aai.exceptions.AAIException;
-import org.openecomp.aai.serialization.db.EdgeProperties;
+import org.openecomp.aai.serialization.db.AAIDirection;
 import org.openecomp.aai.serialization.db.EdgeProperty;
 import org.openecomp.aai.util.AAIConfig;
 import org.openecomp.aai.util.AAIConstants;
@@ -537,7 +537,7 @@ public class ForceDeleteTool {
                        }
                        
                        try {
-                               Iterator <Vertex> vertI = graph.traversal().V(vtx).union(__.outE().has(EdgeProperties.out(EdgeProperty.IS_PARENT), true).inV(), __.inE().has(EdgeProperties.in(EdgeProperty.IS_PARENT), true).outV());
+                               Iterator <Vertex> vertI = graph.traversal().V(vtx).union(__.outE().has(EdgeProperty.CONTAINS.toString(), AAIDirection.OUT.toString()).inV(), __.inE().has(EdgeProperty.CONTAINS.toString(), AAIDirection.IN.toString()).outV());
                                while( vertI != null && vertI.hasNext() ){
                                        totalCount++;
                                        Vertex childVtx = vertI.next();