From 979c0f70fb995cf5e818d846fea4cb573e7b187c Mon Sep 17 00:00:00 2001 From: Biju Kunjummen Date: Wed, 26 Dec 2012 20:04:44 -0500 Subject: [PATCH] DATAJPA-266 - Polish documentation on pagination. Fixed information in documentation, 0 indexed Pageable and page.page instead of page for page parameter. Fixes pull request #21. --- src/docbkx/repositories.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/docbkx/repositories.xml b/src/docbkx/repositories.xml index d20b1ac6f..d4c3c6c13 100644 --- a/src/docbkx/repositories.xml +++ b/src/docbkx/repositories.xml @@ -131,7 +131,7 @@ } - Accessing the second page of User by a page + Pageable and its implementation PageRequest is 0 indexed, so accessing the second page of User by a page size of 20 you could simply do something like this: PagingAndSortingRepository<User, Long> repository = // … get access to a bean @@ -1013,7 +1013,7 @@ public class UserController { - page + page.page The page you want to retrieve