Skip to content

Commit

Permalink
crud-Location
Browse files Browse the repository at this point in the history
  • Loading branch information
globox97 committed Feb 29, 2024
1 parent e352ceb commit 7f45784
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;
import java.util.List;

@RepositoryRestResource
public interface LocationRepository extends CrudRepository<Location, String>, PagingAndSortingRepository<Location, String> {

Location findByIdContaining(@Param("shelter") String shelter);
List<? extends Location> findByIdContaining(@Param("shelter") String shelter);
}

0 comments on commit 7f45784

Please sign in to comment.