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 Type
    Method
    Description
    function that returns the last 10 search Results

    Methods inherited from interface org.springframework.data.repository.CrudRepository

    count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save

    Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

    deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlush

    Methods inherited from interface org.springframework.data.repository.ListCrudRepository

    findAll, findAllById, saveAll

    Methods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

    findAll

    Methods 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