diff options
author | sebdet <sebastien.determe@intl.att.com> | 2020-01-17 15:08:39 +0100 |
---|---|---|
committer | Sébastien Determe <sebastien.determe@intl.att.com> | 2020-01-17 14:30:06 +0000 |
commit | 8d74bbf0a71fa5132e5155b6c202ba9fadffa7ad (patch) | |
tree | 96982c18170017dcc6ace3170468543ae689c1fa /src/main | |
parent | 2e7b15f6a71764e2dba81b70187b17f1fbbb32ab (diff) |
Add fields on microservice
Add fields for DCAE on microservice instance
Issue-ID: CLAMP-572
Change-Id: Ia68b45921ba6f6f3a3efd574887475aff22bc3a8
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/onap/clamp/loop/Loop.java | 3 | ||||
-rw-r--r-- | src/main/java/org/onap/clamp/policy/microservice/MicroServicePolicy.java | 36 |
2 files changed, 38 insertions, 1 deletions
diff --git a/src/main/java/org/onap/clamp/loop/Loop.java b/src/main/java/org/onap/clamp/loop/Loop.java index 66046f02b..383783047 100644 --- a/src/main/java/org/onap/clamp/loop/Loop.java +++ b/src/main/java/org/onap/clamp/loop/Loop.java @@ -127,7 +127,8 @@ public class Loop extends AuditEntity implements Serializable { @Expose @ManyToMany(cascade = { CascadeType.PERSIST, CascadeType.MERGE, CascadeType.REFRESH }, fetch = FetchType.EAGER) - @JoinTable(name = "loops_microservicepolicies", joinColumns = @JoinColumn(name = "loop_id"), inverseJoinColumns = @JoinColumn(name = "microservicepolicy_id")) + @JoinTable(name = "loops_microservicepolicies", joinColumns = @JoinColumn(name = "loop_id"), + inverseJoinColumns = @JoinColumn(name = "microservicepolicy_id")) private Set<MicroServicePolicy> microServicePolicies = new HashSet<>(); @Expose diff --git a/src/main/java/org/onap/clamp/policy/microservice/MicroServicePolicy.java b/src/main/java/org/onap/clamp/policy/microservice/MicroServicePolicy.java index 98742d22b..3e4dd8fd9 100644 --- a/src/main/java/org/onap/clamp/policy/microservice/MicroServicePolicy.java +++ b/src/main/java/org/onap/clamp/policy/microservice/MicroServicePolicy.java @@ -113,6 +113,14 @@ public class MicroServicePolicy extends AuditEntity implements Serializable, Pol @JoinColumn(name = "micro_service_model_id") private MicroServiceModel microServiceModel; + @Expose + @Column(name = "dcae_deployment_id") + private String dcaeDeploymentId; + + @Expose + @Column(name = "dcae_deployment_status_url") + private String dcaeDeploymentStatusUrl; + public MicroServicePolicy() { // serialization } @@ -255,6 +263,34 @@ public class MicroServicePolicy extends AuditEntity implements Serializable, Pol } /** + * @return the dcaeDeploymentId + */ + public String getDcaeDeploymentId() { + return dcaeDeploymentId; + } + + /** + * @param dcaeDeploymentId the dcaeDeploymentId to set + */ + public void setDcaeDeploymentId(String dcaeDeploymentId) { + this.dcaeDeploymentId = dcaeDeploymentId; + } + + /** + * @return the dcaeDeploymentStatusUrl + */ + public String getDcaeDeploymentStatusUrl() { + return dcaeDeploymentStatusUrl; + } + + /** + * @param dcaeDeploymentStatusUrl the dcaeDeploymentStatusUrl to set + */ + public void setDcaeDeploymentStatusUrl(String dcaeDeploymentStatusUrl) { + this.dcaeDeploymentStatusUrl = dcaeDeploymentStatusUrl; + } + + /** * name setter. * * @param name the name to set |