Fix attribute create and update actions

Issue-ID: SDC-3551
Signed-off-by: aribeiro <anderson.ribeiro@est.tech>
Change-Id: I7cac2c793254eec824e1d5365383a8deeccaa1d4
diff --git a/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/AttributeDataDefinition.java b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/AttributeDataDefinition.java
index ea693ef..cffab12 100644
--- a/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/AttributeDataDefinition.java
+++ b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/AttributeDataDefinition.java
@@ -53,6 +53,7 @@
         this.setValue(attributeDataDefinition.getValue());
         this.setStatus(attributeDataDefinition.getStatus());
         this.setEntry_schema(attributeDataDefinition.getEntry_schema());
+        this.setSchema(attributeDataDefinition.getSchema());
         this.setOutputPath(attributeDataDefinition.getOutputPath());
         this.setInstanceUniqueId(attributeDataDefinition.getInstanceUniqueId());
         this.setAttributeId(attributeDataDefinition.getAttributeId());
@@ -127,7 +128,11 @@
     }
 
     public SchemaDefinition getSchema() {
-        return null;
+        return (SchemaDefinition) getToscaPresentationValue(JsonPresentationFields.SCHEMA);
+    }
+
+    public void setSchema(final SchemaDefinition schema) {
+        setToscaPresentationValue(JsonPresentationFields.SCHEMA, schema);
     }
 
     public String getParentUniqueId() {