X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=catalog-dao%2Fsrc%2Fmain%2Fjava%2Forg%2Fopenecomp%2Fsdc%2Fbe%2Fresources%2Fdata%2FDataTypeData.java;h=bf13331dd140af55586166410ad4ff19c33dc0ca;hb=f6b1fff5f297765305c17b1c6bdf540132232233;hp=e482fb55b6135bf5174d3ad2599657d92e337600;hpb=f0100abd146b8c97e4b1ff0ba74175a24bbc5e98;p=sdc.git diff --git a/catalog-dao/src/main/java/org/openecomp/sdc/be/resources/data/DataTypeData.java b/catalog-dao/src/main/java/org/openecomp/sdc/be/resources/data/DataTypeData.java index e482fb55b6..bf13331dd1 100644 --- a/catalog-dao/src/main/java/org/openecomp/sdc/be/resources/data/DataTypeData.java +++ b/catalog-dao/src/main/java/org/openecomp/sdc/be/resources/data/DataTypeData.java @@ -50,6 +50,9 @@ public class DataTypeData extends GraphNode { dataTypeDataDefinition.setCreationTime((Long) properties.get(GraphPropertiesDictionary.CREATION_DATE.getProperty())); dataTypeDataDefinition.setModificationTime((Long) properties.get(GraphPropertiesDictionary.LAST_UPDATE_DATE.getProperty())); dataTypeDataDefinition.setModel((String) properties.get(GraphPropertiesDictionary.MODEL.getProperty())); + final Object normativeProperty = properties.get(GraphPropertiesDictionary.NORMATIVE.getProperty()); + final boolean normative = normativeProperty != null && (boolean) normativeProperty; + dataTypeDataDefinition.setNormative(normative); } @Override @@ -62,6 +65,7 @@ public class DataTypeData extends GraphNode { addIfExists(map, GraphPropertiesDictionary.CREATION_DATE, dataTypeDataDefinition.getCreationTime()); addIfExists(map, GraphPropertiesDictionary.LAST_UPDATE_DATE, dataTypeDataDefinition.getModificationTime()); addIfExists(map, GraphPropertiesDictionary.MODEL, dataTypeDataDefinition.getModel()); + addIfExists(map, GraphPropertiesDictionary.NORMATIVE, dataTypeDataDefinition.isNormative()); return map; }