From 53af118db25d8ae931c8a50c283e8c7caf1038f3 Mon Sep 17 00:00:00 2001 From: subhash kumar singh Date: Tue, 27 Nov 2018 05:55:33 +0530 Subject: Fix model vnfresource bean annotation Fix model vnfresource bean annotation. Change-Id: If18ea766623ad087eae8ac9ea31258dacd192ff7 Issue-ID: SO-1252 Signed-off-by: subhash kumar singh --- bpmn/MSOCommonBPMN/pom.xml | 2 +- .../src/main/java/org/onap/so/db/catalog/beans/VnfResource.java | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/bpmn/MSOCommonBPMN/pom.xml b/bpmn/MSOCommonBPMN/pom.xml index 926e09c498..ee4dab4d8c 100644 --- a/bpmn/MSOCommonBPMN/pom.xml +++ b/bpmn/MSOCommonBPMN/pom.xml @@ -326,7 +326,7 @@ org.onap.sdc.jtosca jtosca - 1.4.1 + 1.4.4 org.springframework.boot diff --git a/mso-catalog-db/src/main/java/org/onap/so/db/catalog/beans/VnfResource.java b/mso-catalog-db/src/main/java/org/onap/so/db/catalog/beans/VnfResource.java index 764d2b7c39..83fe051233 100644 --- a/mso-catalog-db/src/main/java/org/onap/so/db/catalog/beans/VnfResource.java +++ b/mso-catalog-db/src/main/java/org/onap/so/db/catalog/beans/VnfResource.java @@ -43,6 +43,8 @@ import org.apache.commons.lang3.builder.ToStringBuilder; import com.openpojo.business.annotation.BusinessKey; +import org.hibernate.annotations.NotFound; +import org.hibernate.annotations.NotFoundAction; import uk.co.blackpepper.bowman.annotation.LinkedResource; @Entity @@ -91,6 +93,7 @@ public class VnfResource implements Serializable { private Date created; @ManyToOne(fetch = FetchType.LAZY) + @NotFound(action = NotFoundAction.IGNORE) @JoinColumn(name = "HEAT_TEMPLATE_ARTIFACT_UUID") private HeatTemplate heatTemplates; -- cgit 1.2.3-korg