Package org.tailormap.api.repository
Interface SearchIndexRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<SearchIndex,,Long> org.springframework.data.jpa.repository.JpaRepository<SearchIndex,,Long> org.springframework.data.repository.ListCrudRepository<SearchIndex,,Long> org.springframework.data.repository.ListPagingAndSortingRepository<SearchIndex,,Long> org.springframework.data.repository.PagingAndSortingRepository<SearchIndex,,Long> org.springframework.data.repository.query.QueryByExampleExecutor<SearchIndex>,org.springframework.data.repository.Repository<SearchIndex,Long>
public interface SearchIndexRepository
extends org.springframework.data.jpa.repository.JpaRepository<SearchIndex,Long>
-
Method Summary
Modifier and TypeMethodDescriptionfindByFeatureTypeId(Long featureTypeId) findByName(String name) findByTaskScheduleUuid(UUID uuid) Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, 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, findOne
-
Method Details
-
findByFeatureTypeId
-
findByName
-
findByTaskScheduleUuid
@NonNull @Query(value="select * from search_index si, lateral jsonb_path_query(si.schedule, (\'$.uuid ? (@ == \"\'||:uuidToFind||\'\")\')::jsonpath)", nativeQuery=true) List<SearchIndex> findByTaskScheduleUuid(@Param("uuidToFind") @NonNull UUID uuid) -
findSearchIndexById
-