Package org.tailormap.api.repository
Interface GeoServiceRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<GeoService,,String> org.springframework.data.jpa.repository.JpaRepository<GeoService,,String> org.springframework.data.repository.ListCrudRepository<GeoService,,String> org.springframework.data.repository.ListPagingAndSortingRepository<GeoService,,String> org.springframework.data.repository.PagingAndSortingRepository<GeoService,,String> org.springframework.data.repository.query.QueryByExampleExecutor<GeoService>,org.springframework.data.repository.Repository<GeoService,,String> org.springframework.data.repository.history.RevisionRepository<GeoService,String, Long>
public interface GeoServiceRepository
extends org.springframework.data.jpa.repository.JpaRepository<GeoService,String>, org.springframework.data.repository.history.RevisionRepository<GeoService,String,Long>
-
Method Summary
Modifier and TypeMethodDescriptionFind multiple geo-services.getAllExcludingIds(List<String> ids) Find multiple geo-services except some.Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, saveMethods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.repository.ListCrudRepository
findAll, findAllById, saveAllMethods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOneMethods inherited from interface org.springframework.data.repository.history.RevisionRepository
findLastChangeRevision, findRevision, findRevisions, findRevisions
-
Method Details
-
findById
- Specified by:
findByIdin interfaceorg.springframework.data.repository.CrudRepository<GeoService,String>
-
findByIds
@NonNull @PreAuthorize("permitAll()") @Query("from GeoService s where id in :ids") List<GeoService> findByIds(@Param("ids") List<String> ids) Find multiple geo-services. Example URL: /api/admin/geo-services/search/findByIds?ids=openbasiskaart&ids=at-basemap- Parameters:
ids- The ids to search for- Returns:
- The geo services matching the ids
-
getAllExcludingIds
@NonNull @PreAuthorize("permitAll()") @Query("from GeoService s where id not in :ids") List<GeoService> getAllExcludingIds(@Param("ids") List<String> ids) Find multiple geo-services except some. Example URL: /api/admin/geo-services/search/getAllExcludingIds?ids=openbasiskaart&ids=at-basemapNo geo services are returned if ids is an empty list.
- Parameters:
ids- The ids not to include- Returns:
- All geo services except those matching the ids
-