diff options
Diffstat (limited to 'aai-core/src/main/java')
-rw-r--r-- | aai-core/src/main/java/org/onap/aai/serialization/db/EdgeSerializer.java | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/aai-core/src/main/java/org/onap/aai/serialization/db/EdgeSerializer.java b/aai-core/src/main/java/org/onap/aai/serialization/db/EdgeSerializer.java index a5a08203..0c58717e 100644 --- a/aai-core/src/main/java/org/onap/aai/serialization/db/EdgeSerializer.java +++ b/aai-core/src/main/java/org/onap/aai/serialization/db/EdgeSerializer.java @@ -207,15 +207,9 @@ public class EdgeSerializer { * @param rule the rule */ public void addProperties(Edge edge, EdgeRule rule) { - Map<EdgeProperty, String> propMap = new EnumMap<>(EdgeProperty.class); - propMap.put(EdgeProperty.CONTAINS, rule.getContains()); - propMap.put(EdgeProperty.DELETE_OTHER_V, rule.getDeleteOtherV()); - propMap.put(EdgeProperty.PREVENT_DELETE, rule.getPreventDelete()); - - for (Entry<EdgeProperty, String> entry : propMap.entrySet()) { - edge.property(entry.getKey().toString(), entry.getValue()); - } - + edge.property(EdgeProperty.CONTAINS.toString(), rule.getContains()); + edge.property(EdgeProperty.DELETE_OTHER_V.toString(), rule.getDeleteOtherV()); + edge.property(EdgeProperty.PREVENT_DELETE.toString(), rule.getPreventDelete()); edge.property(EdgeField.PRIVATE.toString(), rule.isPrivateEdge()); edge.property(AAIProperties.AAI_UUID, UUID.randomUUID().toString()); } |