From d91aa64b55dbb561b103d40c7e8c16a3023b2717 Mon Sep 17 00:00:00 2001 From: Dan Timoney Date: Thu, 8 Apr 2021 15:26:50 -0400 Subject: Add transaction mgr for preload data The preload data writer needs a transaction manager configured. Change-Id: I7c27e9fa510a78974ddf579a4967c545d05ef428 Issue-ID: SDNC-1517 Signed-off-by: Dan Timoney --- .../org/onap/sdnc/apps/ms/gra/data/ConfigPreloadDataRepository.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ms/generic-resource-api/src/main/java/org/onap/sdnc/apps/ms/gra/data/ConfigPreloadDataRepository.java b/ms/generic-resource-api/src/main/java/org/onap/sdnc/apps/ms/gra/data/ConfigPreloadDataRepository.java index 603611d..0ec45b7 100644 --- a/ms/generic-resource-api/src/main/java/org/onap/sdnc/apps/ms/gra/data/ConfigPreloadDataRepository.java +++ b/ms/generic-resource-api/src/main/java/org/onap/sdnc/apps/ms/gra/data/ConfigPreloadDataRepository.java @@ -21,10 +21,11 @@ package org.onap.sdnc.apps.ms.gra.data; import org.springframework.data.repository.CrudRepository; +import org.springframework.transaction.annotation.Transactional; import java.util.List; - +@Transactional public interface ConfigPreloadDataRepository extends CrudRepository { List findByPreloadIdAndPreloadType(String preloadId, String preloadType); -- cgit 1.2.3-korg