From e9fe3d9f95910e2960cb27c4fe128226e7ff6c3f Mon Sep 17 00:00:00 2001 From: Hdelegido Date: Thu, 7 Mar 2024 16:56:06 +0100 Subject: [PATCH] RoleRepository.java created --- pom.xml | 7 ++++++- .../eps/softarch/demo/repository/RoleRepository.java | 11 +++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 src/main/java/cat/udl/eps/softarch/demo/repository/RoleRepository.java diff --git a/pom.xml b/pom.xml index 49784e0..9807023 100644 --- a/pom.xml +++ b/pom.xml @@ -123,7 +123,12 @@ jackson-annotations 2.15.3 - + + org.springframework.data + spring-data-commons + 3.2.2 + + diff --git a/src/main/java/cat/udl/eps/softarch/demo/repository/RoleRepository.java b/src/main/java/cat/udl/eps/softarch/demo/repository/RoleRepository.java new file mode 100644 index 0000000..d1cf3c0 --- /dev/null +++ b/src/main/java/cat/udl/eps/softarch/demo/repository/RoleRepository.java @@ -0,0 +1,11 @@ +package cat.udl.eps.softarch.demo.repository; + +import cat.udl.eps.softarch.demo.domain.Pet; +import cat.udl.eps.softarch.demo.domain.Role; +import org.springframework.data.repository.CrudRepository; +import org.springframework.data.repository.PagingAndSortingRepository; +import org.springframework.data.rest.core.annotation.RepositoryRestResource; + +@RepositoryRestResource +public interface RoleRepository extends CrudRepository, PagingAndSortingRepository { +}