From b23946ee0b24d69ce7882bb1fd235a9e36f9d0e9 Mon Sep 17 00:00:00 2001 From: George Tziavas Date: Fri, 13 Dec 2024 15:49:22 +0200 Subject: [PATCH 1/2] Added the attribute --- .../java/org/etsi/osl/tmf/pm628/model/ManagementJobMVO.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJobMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJobMVO.java index 7a62bc1..cbfc3db 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJobMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJobMVO.java @@ -59,6 +59,10 @@ public class ManagementJobMVO { @Valid private List scheduleDefinition = new ArrayList<>(); + // Property bellow was added by UoP and is not officialy part of TMF628 Model + // @JsonProperty("executionState") + private ExecutionStateType executionState; + public ManagementJobMVO() { super(); } -- GitLab From 0c58815dd25a3f478ddfbf4be790c15703e89859 Mon Sep 17 00:00:00 2001 From: George Tziavas Date: Fri, 20 Dec 2024 16:52:40 +0200 Subject: [PATCH 2/2] to create mappers --- .../org/etsi/osl/tmf/pm628/model/ManagementJobMVO.java | 10 ++++++---- .../etsi/osl/tmf/pm628/model/ResourceRefOrValue.java | 1 + .../osl/tmf/pm628/model/ResourceRefOrValueMVO.java | 1 + 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJobMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJobMVO.java index cbfc3db..68ff0fa 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJobMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJobMVO.java @@ -1,13 +1,12 @@ package org.etsi.osl.tmf.pm628.model; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.*; import io.swagger.v3.oas.annotations.media.Schema; import jakarta.validation.Valid; import jakarta.validation.constraints.NotNull; import jakarta.validation.constraints.Size; +import lombok.Getter; +import lombok.Setter; import javax.annotation.Generated; import java.util.ArrayList; @@ -61,6 +60,9 @@ public class ManagementJobMVO { // Property bellow was added by UoP and is not officialy part of TMF628 Model // @JsonProperty("executionState") + @Setter + @Getter + @JsonIgnore private ExecutionStateType executionState; public ManagementJobMVO() { diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefOrValue.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefOrValue.java index 0b4a31e..20a1c9c 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefOrValue.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefOrValue.java @@ -22,4 +22,5 @@ import javax.annotation.Generated; @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-05-15T07:30:16.936523289Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT") public interface ResourceRefOrValue { public String getType(); + public void setType(String type); } diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefOrValueMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefOrValueMVO.java index faa8be6..2eeee00 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefOrValueMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefOrValueMVO.java @@ -24,4 +24,5 @@ import javax.annotation.Generated; @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-05-15T07:30:16.936523289Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT") public interface ResourceRefOrValueMVO { public String getType(); + public void setType(String type); } -- GitLab