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 7f45784 commit 0ce079d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package cat.udl.eps.softarch.demo.repository;

import cat.udl.eps.softarch.demo.domain.Location;
import cat.udl.eps.softarch.demo.domain.Shelter;
import org.springframework.data.repository.CrudRepository;
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> {
public interface LocationRepository extends CrudRepository<Location, Long>, PagingAndSortingRepository<Location, Long> {

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

0 comments on commit 0ce079d

Please sign in to comment.