Skip to content

Commit

Permalink
updated PetRepository
Browse files Browse the repository at this point in the history
  • Loading branch information
Antt02 committed Feb 22, 2024
1 parent f305dee commit 05fe807
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package cat.udl.eps.softarch.demo.repository;

import cat.udl.eps.softarch.demo.domain.Pet;
import cat.udl.eps.softarch.demo.domain.Shelter;
import cat.udl.eps.softarch.demo.domain.User;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.PagingAndSortingRepository;
Expand All @@ -10,4 +11,5 @@

public interface PetRepository extends CrudRepository<Pet, Long>, PagingAndSortingRepository<Pet, Long> {
List<User> findBySize(@Param("size") String size);
List<User> findByShelter(@Param("Shelter") Shelter shelter);
}

0 comments on commit 05fe807

Please sign in to comment.