From 7444e363a9dafa947547b83ed4a27aa8bca8a895 Mon Sep 17 00:00:00 2001 From: PauMAVA Date: Tue, 5 Mar 2024 16:01:36 +0100 Subject: [PATCH] Add Pet, Dog and Cat repos --- .../udl/eps/softarch/demo/repository/CatRepository.java | 8 ++++++++ .../udl/eps/softarch/demo/repository/DogRepository.java | 8 ++++++++ .../udl/eps/softarch/demo/repository/PetRepository.java | 8 ++++++++ 3 files changed, 24 insertions(+) create mode 100644 src/main/java/cat/udl/eps/softarch/demo/repository/CatRepository.java create mode 100644 src/main/java/cat/udl/eps/softarch/demo/repository/DogRepository.java create mode 100644 src/main/java/cat/udl/eps/softarch/demo/repository/PetRepository.java diff --git a/src/main/java/cat/udl/eps/softarch/demo/repository/CatRepository.java b/src/main/java/cat/udl/eps/softarch/demo/repository/CatRepository.java new file mode 100644 index 0000000..48c8445 --- /dev/null +++ b/src/main/java/cat/udl/eps/softarch/demo/repository/CatRepository.java @@ -0,0 +1,8 @@ +package cat.udl.eps.softarch.demo.repository; + +import cat.udl.eps.softarch.demo.domain.Cat; +import org.springframework.data.repository.CrudRepository; +import org.springframework.data.repository.PagingAndSortingRepository; + +public interface CatRepository extends CrudRepository, PagingAndSortingRepository { +} diff --git a/src/main/java/cat/udl/eps/softarch/demo/repository/DogRepository.java b/src/main/java/cat/udl/eps/softarch/demo/repository/DogRepository.java new file mode 100644 index 0000000..5e83b4c --- /dev/null +++ b/src/main/java/cat/udl/eps/softarch/demo/repository/DogRepository.java @@ -0,0 +1,8 @@ +package cat.udl.eps.softarch.demo.repository; + +import cat.udl.eps.softarch.demo.domain.Dog; +import org.springframework.data.repository.CrudRepository; +import org.springframework.data.repository.PagingAndSortingRepository; + +public interface DogRepository extends CrudRepository, PagingAndSortingRepository { +} diff --git a/src/main/java/cat/udl/eps/softarch/demo/repository/PetRepository.java b/src/main/java/cat/udl/eps/softarch/demo/repository/PetRepository.java new file mode 100644 index 0000000..d7edc69 --- /dev/null +++ b/src/main/java/cat/udl/eps/softarch/demo/repository/PetRepository.java @@ -0,0 +1,8 @@ +package cat.udl.eps.softarch.demo.repository; + +import cat.udl.eps.softarch.demo.domain.Pet; +import org.springframework.data.repository.CrudRepository; +import org.springframework.data.repository.PagingAndSortingRepository; + +public interface PetRepository extends CrudRepository, PagingAndSortingRepository { +}