From 42badf256f504700d77c8339ec6786822423873b Mon Sep 17 00:00:00 2001 From: Mark Paluch Date: Fri, 10 Nov 2023 14:32:29 +0100 Subject: [PATCH] Polishing. Fix grammar. Add note about store-specific support. See #2960 Original pull request: #2961 --- .../modules/ROOT/pages/repositories/core-concepts.adoc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/antora/modules/ROOT/pages/repositories/core-concepts.adoc b/src/main/antora/modules/ROOT/pages/repositories/core-concepts.adoc index 6fbc07f78..b3798d11a 100644 --- a/src/main/antora/modules/ROOT/pages/repositories/core-concepts.adoc +++ b/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. 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 { } ---- +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]