diff options
author | Rodrigo Lima <rodrigo.lima@yoppworks.com> | 2020-09-10 16:36:12 -0400 |
---|---|---|
committer | Rodrigo Lima <rodrigo.lima@yoppworks.com> | 2020-09-11 10:25:22 -0400 |
commit | 623b945f2bfc3bf66ec0e24d988bdb3400e2daae (patch) | |
tree | 4912da3901d9caccb8ce3f3b8f920b1760746e49 | |
parent | c35c896ba3cf8ea670c9a3a87e77be0b3dedb2b3 (diff) |
Update ownercheck side effect
- Use both E and both V to select owning entity
Issue-ID: AAI-3176
Signed-off-by: Rodrigo Lima <rodrigo.lima@yoppworks.com>
Change-Id: I2e453dfd3c52c0de67981b8344434576fc514d0f
-rw-r--r-- | aai-core/src/main/java/org/onap/aai/introspection/sideeffect/OwnerCheck.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/aai-core/src/main/java/org/onap/aai/introspection/sideeffect/OwnerCheck.java b/aai-core/src/main/java/org/onap/aai/introspection/sideeffect/OwnerCheck.java index a32c4ecc..061c6409 100644 --- a/aai-core/src/main/java/org/onap/aai/introspection/sideeffect/OwnerCheck.java +++ b/aai-core/src/main/java/org/onap/aai/introspection/sideeffect/OwnerCheck.java @@ -48,8 +48,8 @@ public class OwnerCheck extends SideEffect { if (serializer.getGroups() != null && !serializer.getGroups().isEmpty()) { List<Vertex> owningEntity = self.graph().traversal() .V(self) - .inE("org.onap.relationships.inventory.BelongsTo") - .outV() + .bothE("org.onap.relationships.inventory.BelongsTo") + .otherV() .has("aai-node-type", "owning-entity") .toList(); |