aboutsummaryrefslogtreecommitdiffstats
path: root/vid-app-common/src/main/java/org/onap/vid/aai/model/RelationshipData.java
diff options
context:
space:
mode:
Diffstat (limited to 'vid-app-common/src/main/java/org/onap/vid/aai/model/RelationshipData.java')
-rw-r--r--vid-app-common/src/main/java/org/onap/vid/aai/model/RelationshipData.java42
1 files changed, 21 insertions, 21 deletions
diff --git a/vid-app-common/src/main/java/org/onap/vid/aai/model/RelationshipData.java b/vid-app-common/src/main/java/org/onap/vid/aai/model/RelationshipData.java
index 415366514..55a0b77df 100644
--- a/vid-app-common/src/main/java/org/onap/vid/aai/model/RelationshipData.java
+++ b/vid-app-common/src/main/java/org/onap/vid/aai/model/RelationshipData.java
@@ -1,29 +1,29 @@
package org.onap.vid.aai.model;
-import org.codehaus.jackson.annotate.JsonIgnoreProperties;
-import org.codehaus.jackson.annotate.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonAlias;
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
@JsonIgnoreProperties(ignoreUnknown = true)
public class RelationshipData {
- @JsonProperty("relationship-key")
- public String getRelationshipKey() {
- return relationshipKey;
- }
- @JsonProperty("relationship-key")
- public void setRelationshipKey(String relationshipKey) {
- this.relationshipKey = relationshipKey;
- }
- @JsonProperty("relationship-value")
- public String getRelationshipValue() {
- return relationshipValue;
- }
- @JsonProperty("relationship-value")
- public void setRelationshipValue(String relationshipValue) {
- this.relationshipValue = relationshipValue;
- }
+ public String relationshipKey;
+ public String relationshipValue;
- public String relationshipKey;
-
- public String relationshipValue;
+ public String getRelationshipKey() {
+ return relationshipKey;
+ }
+
+ @JsonAlias("relationship-key")
+ public void setRelationshipKey(String relationshipKey) {
+ this.relationshipKey = relationshipKey;
+ }
+
+ public String getRelationshipValue() {
+ return relationshipValue;
+ }
+
+ @JsonAlias("relationship-value")
+ public void setRelationshipValue(String relationshipValue) {
+ this.relationshipValue = relationshipValue;
+ }
}