aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/org
diff options
context:
space:
mode:
authorJames Forsyth <jf2512@att.com>2019-12-10 21:00:33 +0000
committerGerrit Code Review <gerrit@onap.org>2019-12-10 21:00:33 +0000
commit20617c2eb958ee31955c0e23992afe31a492c0ff (patch)
treed48babd00fc7e74fbed02ecb7aeb54ad85f60ab1 /src/main/java/org
parent28f5cfef5027e68efd184276714f013b616a4d27 (diff)
parent51c7e6c74ab520bd1c711407356a96ebffaf2214 (diff)
Merge "Adding openmodel plugin mapping"
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/onap/aai/graphgraph/velocity/VelocityEntityProperty.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main/java/org/onap/aai/graphgraph/velocity/VelocityEntityProperty.java b/src/main/java/org/onap/aai/graphgraph/velocity/VelocityEntityProperty.java
index 9ee2fbb..fcd2106 100644
--- a/src/main/java/org/onap/aai/graphgraph/velocity/VelocityEntityProperty.java
+++ b/src/main/java/org/onap/aai/graphgraph/velocity/VelocityEntityProperty.java
@@ -1,14 +1,16 @@
package org.onap.aai.graphgraph.velocity;
+import java.util.UUID;
import org.onap.aai.graphgraph.dto.Property;
public class VelocityEntityProperty extends Property {
private final VelocityEntity entity;
-
+ private final String propertyId;
public VelocityEntityProperty(String propertyName, String propertyValue, VelocityEntity entity) {
super(propertyName, propertyValue);
this.entity = entity;
+ propertyId = entity != null ? entity.getRandomId() : UUID.randomUUID().toString();
}
public String getEntityId() {
@@ -23,6 +25,10 @@ public class VelocityEntityProperty extends Property {
return entity != null;
}
+ public String getPropertyId() {
+ return propertyId;
+ }
+
@Override
public String toString() {
return "VelocityEntityProperty{" +