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 index 4f01f85..c75c19c 100644 --- a/src/main/java/cat/udl/eps/softarch/demo/repository/PetRepository.java +++ b/src/main/java/cat/udl/eps/softarch/demo/repository/PetRepository.java @@ -8,8 +8,9 @@ @RepositoryRestResource public interface PetRepository extends CrudRepository, PagingAndSortingRepository { - Pet findByName(@Param("name") String name); + Pet findPetById(@Param("id") Long id); + Pet findByName(@Param("name") String name); Pet findByChip(@Param("chip") String name); }