Browse Source

Polishing.

Fix grammar. Add note about store-specific support.

See #2960
Original pull request: #2961
pull/2978/head
Mark Paluch 2 years ago
parent
commit
42badf256f
No known key found for this signature in database
GPG Key ID: 4406B84C1661DCD1
  1. 5
      src/main/antora/modules/ROOT/pages/repositories/core-concepts.adoc

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

@ -40,7 +40,7 @@ The methods declared in this interface are commonly referred to as CRUD methods. @@ -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]
@ -53,6 +53,9 @@ public interface PagingAndSortingRepository<T, ID> { @@ -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]

Loading…
Cancel
Save