diff options
author | aribeiro <anderson.ribeiro@est.tech> | 2021-04-08 17:19:09 +0100 |
---|---|---|
committer | Christophe Closset <christophe.closset@intl.att.com> | 2021-04-15 09:49:35 +0000 |
commit | 08e9226a0a63c94f2efbd4a573957a884e185c2c (patch) | |
tree | b7816a38822033ea37d87f7fc263370e115ce50e /common-be | |
parent | 8d4bec21b1a9b1001c3771afa5c27ba1ee52b423 (diff) |
Fix attribute create and update actions
Cherry pick from Change-Id: I7cac2c793254eec824e1d5365383a8deeccaa1d4
Issue-ID: SDC-3551
Signed-off-by: aribeiro <anderson.ribeiro@est.tech>
Change-Id: I7cac2c793254eec824e1d5365383a8deeccaa1d4
Diffstat (limited to 'common-be')
-rw-r--r-- | common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/AttributeDataDefinition.java | 7 |
1 files changed, 6 insertions, 1 deletions
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 7be02e77e7..89a34b3e00 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 @@ public class AttributeDataDefinition extends ToscaDataDefinition { 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()); @@ -120,7 +121,11 @@ public class AttributeDataDefinition extends ToscaDataDefinition { } public SchemaDefinition getSchema() { - return null; + return (SchemaDefinition) getToscaPresentationValue(JsonPresentationFields.SCHEMA); + } + + public void setSchema(final SchemaDefinition schema) { + setToscaPresentationValue(JsonPresentationFields.SCHEMA, schema); } public String getParentUniqueId() { |