aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorSteven Blimkie <Steven.Blimkie@amdocs.com>2018-06-12 17:29:17 +0000
committerGerrit Code Review <gerrit@onap.org>2018-06-12 17:29:17 +0000
commit18703cdc19842806969d30f19f8171469c79a0fe (patch)
tree10fa8686798f78a6088e447e4222af68aed43798 /src/main
parent28f9fa1399f5e513a3d5860c52cd51b615bc0a2c (diff)
parent414eaef56d9f9427712448c22a0c7eec02007ba4 (diff)
Merge "Fix GET ALL for vertices created asynchronously"
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/onap/crud/service/CrudAsyncGraphDataService.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/org/onap/crud/service/CrudAsyncGraphDataService.java b/src/main/java/org/onap/crud/service/CrudAsyncGraphDataService.java
index dc30a4e..5d37acb 100644
--- a/src/main/java/org/onap/crud/service/CrudAsyncGraphDataService.java
+++ b/src/main/java/org/onap/crud/service/CrudAsyncGraphDataService.java
@@ -202,6 +202,7 @@ public class CrudAsyncGraphDataService extends AbstractGraphDataService {
public String addVertex(String version, String type, VertexPayload payload) throws CrudException {
// Validate the incoming payload
Vertex vertex = OxmModelValidator.validateIncomingUpsertPayload(null, version, type, payload.getProperties());
+ vertex.getProperties().put(org.onap.schema.OxmModelValidator.Metadata.NODE_TYPE.propertyName(), type);
// Create graph request event
GraphEvent event = GraphEvent.builder(GraphEventOperation.CREATE)
.vertex(GraphEventVertex.fromVertex(vertex, version)).build();