- 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
if (serializer.getGroups() != null && !serializer.getGroups().isEmpty()) {
List<Vertex> owningEntity = self.graph().traversal()
.V(self)
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();
.has("aai-node-type", "owning-entity")
.toList();