diff options
Diffstat (limited to 'ms/gra')
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); |