Skip to content

Commit

Permalink
Made find by name return Shelter not list
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianJitaru29 committed Mar 7, 2024
1 parent a0bd115 commit 4976d68
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@

@RepositoryRestResource
public interface ShelterRepository extends CrudRepository<Shelter, Long>, PagingAndSortingRepository<Shelter, Long> {
List<Shelter> findByName(@Param("name") String name);
Shelter findByName(@Param("name") String name);
List<Shelter> findByLocatedAt(@Param("location") Location location);
}

0 comments on commit 4976d68

Please sign in to comment.