From 2bd3b168dde2716d7a00134130ff1c154a1829db Mon Sep 17 00:00:00 2001 From: vGerJ02 Date: Thu, 16 May 2024 16:49:29 +0200 Subject: [PATCH] feat: add findByEmail and findByMobile to check uniqueness --- .../cat/udl/eps/softarch/demo/repository/ShelterRepository.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/cat/udl/eps/softarch/demo/repository/ShelterRepository.java b/src/main/java/cat/udl/eps/softarch/demo/repository/ShelterRepository.java index 04b828d8..931d3906 100644 --- a/src/main/java/cat/udl/eps/softarch/demo/repository/ShelterRepository.java +++ b/src/main/java/cat/udl/eps/softarch/demo/repository/ShelterRepository.java @@ -13,5 +13,7 @@ @RepositoryRestResource public interface ShelterRepository extends CrudRepository, PagingAndSortingRepository { List findByName(@Param("name") String name); + List findByEmail(@Param("email") String email); + List findByMobile(@Param("mobile") String mobile); List findByLocatedAt(@Param("location") Location location); } \ No newline at end of file