Skip to content

Commit

Permalink
Polishing.
Browse files Browse the repository at this point in the history
Fix grammar. Add note about store-specific support.

See #2960
Original pull request: #2961
  • Loading branch information
mp911de committed Nov 10, 2023
1 parent 02d780f commit 42badf2
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ The methods declared in this interface are commonly referred to as CRUD methods.
NOTE: We also provide persistence technology-specific abstractions, such as `JpaRepository` or `MongoRepository`.
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`.

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:
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 add additional methods to ease paginated access to entities:

.`PagingAndSortingRepository` interface
[source,java]
Expand All @@ -53,6 +53,9 @@ public interface PagingAndSortingRepository<T, ID> {
}
----

NOTE: Extension interfaces are subject to be supported by the actual store module.
While this documentation explains the general scheme, make sure that your store module supports the interfaces that you want to use.

To access the second page of `User` by a page size of 20, you could do something like the following:

[source,java]
Expand Down

0 comments on commit 42badf2

Please sign in to comment.