diff options
author | Dan Timoney <dtimoney@att.com> | 2021-04-08 15:26:50 -0400 |
---|---|---|
committer | Dan Timoney <dtimoney@att.com> | 2021-04-08 15:26:50 -0400 |
commit | d91aa64b55dbb561b103d40c7e8c16a3023b2717 (patch) | |
tree | 3fea80fea079de43a3bec32fc3d903ad17069177 /ms/generic-resource-api/src | |
parent | c17ea9680e6029128de5c935550079345f416d02 (diff) |
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 <dtimoney@att.com>
Diffstat (limited to 'ms/generic-resource-api/src')
-rw-r--r-- | ms/generic-resource-api/src/main/java/org/onap/sdnc/apps/ms/gra/data/ConfigPreloadDataRepository.java | 3 |
1 files changed, 2 insertions, 1 deletions
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<ConfigPreloadData, Long> { List<ConfigPreloadData> findByPreloadIdAndPreloadType(String preloadId, String preloadType); |