Skip to content

Commit

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

import cat.udl.eps.softarch.demo.domain.Pet;
import cat.udl.eps.softarch.demo.domain.User;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.repository.query.Param;

import java.util.List;

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

0 comments on commit f305dee

Please sign in to comment.