Interface PagingAndSortingRepository<T,ID>

Type Parameters:
T - Entity generic type
ID - Primary Key generic type
All Superinterfaces:
org.springframework.data.repository.CrudRepository<T,ID>, org.springframework.data.repository.Repository<T,ID>

public interface PagingAndSortingRepository<T,ID> extends org.springframework.data.repository.CrudRepository<T,ID>
Version of PagingAndSortingRepository that inherits from CrudRepository, similar to the behavior in Spring Boot 2.7.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.data.domain.Page<T>
    findAll(org.springframework.data.domain.Pageable pageable)
    Returns a Page of entities meeting the paging restriction provided in the Pageable object.
    findAll(org.springframework.data.domain.Sort sort)
    Returns all entities sorted by the given options.

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

    count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findAll, findAllById, findById, save, saveAll
  • Method Details

    • findAll

      Iterable<T> findAll(org.springframework.data.domain.Sort sort)
      Returns all entities sorted by the given options.
      Parameters:
      sort - the Sort specification to sort the results by, can be Sort.unsorted(), must not be null.
      Returns:
      all entities sorted by the given options
    • findAll

      org.springframework.data.domain.Page<T> findAll(org.springframework.data.domain.Pageable pageable)
      Returns a Page of entities meeting the paging restriction provided in the Pageable object.
      Parameters:
      pageable - the pageable to request a paged result, can be Pageable.unpaged(), must not be null.
      Returns:
      a page of entities