From 0ef5f83fbe6f68cbde5530b5d58d96cac285cfa7 Mon Sep 17 00:00:00 2001 From: "andre.schmid" Date: Fri, 17 Sep 2021 18:57:23 +0100 Subject: Fix update VSP missing VSP version id Fills the gaps of persisting and loading the VSP version id Change-Id: I4d6c63bd2309777fdfb337cf98c1a0f9daaa434b Issue-ID: SDC-3731 Signed-off-by: andre.schmid --- .../org/openecomp/sdc/be/components/impl/ResourceBusinessLogic.java | 3 +++ .../openecomp/sdc/be/components/impl/ServiceImportBusinessLogic.java | 3 +++ 2 files changed, 6 insertions(+) (limited to 'catalog-be/src/main/java/org') diff --git a/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ResourceBusinessLogic.java b/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ResourceBusinessLogic.java index 018deca3ac..9ba20f46a1 100644 --- a/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ResourceBusinessLogic.java +++ b/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ResourceBusinessLogic.java @@ -3599,6 +3599,9 @@ public class ResourceBusinessLogic extends ComponentBusinessLogic { if (oldResource.getCsarUUID() != null) { newResource.setCsarUUID(oldResource.getCsarUUID()); } + if (oldResource.getCsarVersionId() != null) { + newResource.setCsarVersionId(oldResource.getCsarVersionId()); + } if (oldResource.getImportedToscaChecksum() != null) { newResource.setImportedToscaChecksum(oldResource.getImportedToscaChecksum()); } diff --git a/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ServiceImportBusinessLogic.java b/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ServiceImportBusinessLogic.java index 6bb7fdadb9..0c5accad09 100644 --- a/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ServiceImportBusinessLogic.java +++ b/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ServiceImportBusinessLogic.java @@ -2419,6 +2419,9 @@ public class ServiceImportBusinessLogic { if (oldResource.getCsarUUID() != null) { newResource.setCsarUUID(oldResource.getCsarUUID()); } + if (oldResource.getCsarVersionId() != null) { + newResource.setCsarVersionId(oldResource.getCsarVersionId()); + } if (oldResource.getImportedToscaChecksum() != null) { newResource.setImportedToscaChecksum(oldResource.getImportedToscaChecksum()); } -- cgit 1.2.3-korg