@NoRepositoryBean public interface PagingAndSortingRepository<T,ID> extends CrudRepository<T,ID>
CrudRepository to provide additional methods to retrieve entities using the pagination and
sorting abstraction.| Modifier and Type | Method and Description |
|---|---|
Page<T> |
findAll(Pageable pageable)
|
Iterable<T> |
findAll(Sort sort)
Returns all entities sorted by the given options.
|
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findAll, findAllById, findById, save, saveAllIterable<T> findAll(Sort sort)
sort - the Sort specification to sort the results by, can be Sort.unsorted(), must not be
null.Page<T> findAll(Pageable pageable)
pageable - the pageable to request a paged result, can be Pageable.unpaged(), must not be
null.Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.