Package com.mindstore.backend.repository
Interface SearchHistoryRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<SearchHistory,,Long> org.springframework.data.jpa.repository.JpaRepository<SearchHistory,,Long> org.springframework.data.repository.ListCrudRepository<SearchHistory,,Long> org.springframework.data.repository.ListPagingAndSortingRepository<SearchHistory,,Long> org.springframework.data.repository.PagingAndSortingRepository<SearchHistory,,Long> org.springframework.data.repository.query.QueryByExampleExecutor<SearchHistory>,org.springframework.data.repository.Repository<SearchHistory,Long>
public interface SearchHistoryRepository
extends org.springframework.data.jpa.repository.JpaRepository<SearchHistory,Long>
Default Repository for Search History entity
-
Method Summary
Modifier and TypeMethodDescriptionfunction that returns the last 10 search ResultsMethods 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
-
findTop10ByOrderBySearchedAtDesc
List<SearchHistory> findTop10ByOrderBySearchedAtDesc()function that returns the last 10 search Results- Returns:
- List of SearchHistory
-