diff options
author | Dan Timoney <dtimoney@att.com> | 2021-04-28 16:39:39 -0400 |
---|---|---|
committer | Dan Timoney <dtimoney@att.com> | 2021-04-28 16:39:39 -0400 |
commit | 4812dfbcf0c010cb05ec88505a6c473a96644284 (patch) | |
tree | 1b3c69fb44ca3a1f93115c944821c2a264905d25 | |
parent | bf2bea4aaee161d82c8093f8b723f0fd9b57a115 (diff) |
Add transaction manager for operational data
Add missing @Transactional tag for operational preload and service
data repository interfaces.
Change-Id: I119008729d10a1a66cfcf4f17571a90670201c83
Issue-ID: SDNC-1517
Signed-off-by: Dan Timoney <dtimoney@att.com>
2 files changed, 4 insertions, 1 deletions
diff --git a/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/data/OperationalPreloadDataRepository.java b/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/data/OperationalPreloadDataRepository.java index 34df132..a3eb0da 100644 --- a/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/data/OperationalPreloadDataRepository.java +++ b/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/data/OperationalPreloadDataRepository.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 OperationalPreloadDataRepository extends CrudRepository<OperationalPreloadData, Long> { List<OperationalPreloadData> findByPreloadIdAndPreloadType(String preloadId, String preloadType); diff --git a/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/data/OperationalServicesRepository.java b/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/data/OperationalServicesRepository.java index 15b2acc..164fd16 100644 --- a/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/data/OperationalServicesRepository.java +++ b/ms/gra/gra-app/src/main/java/org/onap/sdnc/apps/ms/gra/data/OperationalServicesRepository.java @@ -24,7 +24,9 @@ import org.springframework.data.repository.CrudRepository; import java.util.List; +import javax.transaction.Transactional; +@Transactional public interface OperationalServicesRepository extends CrudRepository<OperationalServices, Long> { List<OperationalServices> findBySvcInstanceId(String svcInstanceId); |