Skip to content

Commit 02d780f

Browse files
schaudermp911de
authored andcommitted
Mention ListPagingAndSortingRepository in documentation.
Closes #2960 Original pull request: #2961
1 parent 3c872ae commit 02d780f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/antora/modules/ROOT/pages/repositories/core-concepts.adoc

+3-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ The methods declared in this interface are commonly referred to as CRUD methods.
4040
NOTE: We also provide persistence technology-specific abstractions, such as `JpaRepository` or `MongoRepository`.
4141
Those interfaces extend `CrudRepository` and expose the capabilities of the underlying persistence technology in addition to the rather generic persistence technology-agnostic interfaces such as `CrudRepository`.
4242

43-
Additional to the `CrudRepository`, there is a {spring-data-commons-javadoc-base}/org/springframework/data/repository/PagingAndSortingRepository.html[`PagingAndSortingRepository`] abstraction that adds additional methods to ease paginated access to entities:
43+
Additional to the `CrudRepository`, there are {spring-data-commons-javadoc-base}/org/springframework/data/repository/PagingAndSortingRepository.html[`PagingAndSortingRepository`] and {spring-data-commons-javadoc-base}/org/springframework/data/repository/ListPagingAndSortingRepository.html[`ListPagingAndSortingRepository`] which adds additional methods to ease paginated access to entities:
4444

4545
.`PagingAndSortingRepository` interface
4646
[source,java]
@@ -61,6 +61,8 @@ PagingAndSortingRepository<User, Long> repository = // … get access to a bean
6161
Page<User> users = repository.findAll(PageRequest.of(1, 20));
6262
----
6363

64+
`ListPagingAndSortingRepository` offers equivalent methods, but returns a `List` where the `PagingAndSortingRepository` methods return an `Iterable`.
65+
6466
ifdef::feature-scroll[]
6567
In addition to pagination, scrolling provides a more fine-grained access to iterate through chunks of larger result sets.
6668
endif::[]

0 commit comments

Comments
 (0)