Interface PagingAndSortingRepository<T,ID>
- All Superinterfaces:
Repository<T,
ID>
- All Known Subinterfaces:
ListPagingAndSortingRepository<T,
ID>
Repository fragment to provide methods to retrieve entities using the pagination and sorting abstraction. In many
cases this will be combined with
CrudRepository
or similar or with manually added methods to provide CRUD
functionality.- Author:
- Oliver Gierke, Jens Schauder
- See Also:
-
Method Summary
-
Method Details
-
findAll
Returns all entities sorted by the given options.- Parameters:
sort
- theSort
specification to sort the results by, can beSort.unsorted()
, must not be null.- Returns:
- all entities sorted by the given options
-
findAll
- Parameters:
pageable
- the pageable to request a paged result, can bePageable.unpaged()
, must not be null.- Returns:
- a page of entities
-