From cd30f0cb0f6fe465d13a97e55359bd6bea158f08 Mon Sep 17 00:00:00 2001 From: Yulian Han Date: Thu, 2 Jan 2020 00:31:28 +0800 Subject: SO API to support custom PNF workflow Change-Id: Idaa55084f5ecb0dd3636c232cebc14fa5f064418 Issue-ID: SO-2071 Signed-off-by: Yulian Han --- .../main/java/org/onap/so/db/catalog/beans/Workflow.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'mso-catalog-db/src/main/java') diff --git a/mso-catalog-db/src/main/java/org/onap/so/db/catalog/beans/Workflow.java b/mso-catalog-db/src/main/java/org/onap/so/db/catalog/beans/Workflow.java index 6bd0713085..fc1c753e85 100644 --- a/mso-catalog-db/src/main/java/org/onap/so/db/catalog/beans/Workflow.java +++ b/mso-catalog-db/src/main/java/org/onap/so/db/catalog/beans/Workflow.java @@ -73,6 +73,9 @@ public class Workflow implements Serializable { @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "workflow") private List vnfResourceWorkflow; + @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "workflow") + private List pnfResourceWorkflow; + @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "workflow") private List workflowActivitySpecSequence; @@ -190,6 +193,15 @@ public class Workflow implements Serializable { this.vnfResourceWorkflow = vnfResourceWorkflow; } + @LinkedResource + public List getPnfResourceWorkflow() { + return pnfResourceWorkflow; + } + + public void setPnfResourceWorkflow(List pnfResourceWorkflow) { + this.pnfResourceWorkflow = pnfResourceWorkflow; + } + @LinkedResource public List getWorkflowActivitySpecSequence() { return workflowActivitySpecSequence; @@ -207,6 +219,7 @@ public class Workflow implements Serializable { .append("resourceTarget", resourceTarget).append("source", source) .append("timeoutMinutes", timeoutMinutes).append("artifactChecksum", artifactChecksum) .append("created", created).append("vnfResourceWorkflow", vnfResourceWorkflow) + .append("pnfResourceWorkflow", pnfResourceWorkflow) .append("WorkflowActivitySpecSequence", workflowActivitySpecSequence).toString(); } -- cgit 1.2.3-korg