diff options
author | Gamboa, Gilbert <gilbert.g.gamboa@att.com> | 2020-01-17 09:18:43 -0500 |
---|---|---|
committer | Benjamin, Max (mb388a) <mb388a@att.com> | 2020-01-17 09:18:43 -0500 |
commit | 2279b5c66e8432606f5677abc7900b81b0438fe7 (patch) | |
tree | 393295adb4595ee0f382dffaeb320bed99a2febd /mso-catalog-db | |
parent | b6b577995677cc637fb829abd4cb76434af41775 (diff) |
Replaced annotation with RepositoryRestResource
Use rest calls to update CatalogDB
Issue-ID: SO-2603
Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com>
Change-Id: I86d01259c007ed9f9fe53aeca53d126cbe066b1a
Diffstat (limited to 'mso-catalog-db')
-rw-r--r-- | mso-catalog-db/src/main/java/org/onap/so/db/catalog/data/repository/NetworkResourceRepository.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mso-catalog-db/src/main/java/org/onap/so/db/catalog/data/repository/NetworkResourceRepository.java b/mso-catalog-db/src/main/java/org/onap/so/db/catalog/data/repository/NetworkResourceRepository.java index eaeb4292fb..42d107c1ff 100644 --- a/mso-catalog-db/src/main/java/org/onap/so/db/catalog/data/repository/NetworkResourceRepository.java +++ b/mso-catalog-db/src/main/java/org/onap/so/db/catalog/data/repository/NetworkResourceRepository.java @@ -23,9 +23,10 @@ package org.onap.so.db.catalog.data.repository; import org.onap.so.db.catalog.beans.NetworkResource; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Query; +import org.springframework.data.rest.core.annotation.RepositoryRestResource; import org.springframework.stereotype.Repository; -@Repository +@RepositoryRestResource(collectionResourceRel = "networkResource", path = "networkResource") public interface NetworkResourceRepository extends JpaRepository<NetworkResource, String> { /** |