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.
This commit is contained in:
committed by
Oliver Gierke
parent
3a72d56ee8
commit
979c0f70fb
@@ -131,7 +131,7 @@
|
||||
}</programlisting>
|
||||
</example>
|
||||
|
||||
<para>Accessing the second page of <classname>User</classname> by a page
|
||||
<para>Pageable and its implementation PageRequest is 0 indexed, so accessing the second page of <classname>User</classname> by a page
|
||||
size of 20 you could simply do something like this:</para>
|
||||
|
||||
<programlisting language="java">PagingAndSortingRepository<User, Long> repository = // … get access to a bean
|
||||
@@ -1013,7 +1013,7 @@ public class UserController {
|
||||
|
||||
<tbody>
|
||||
<row>
|
||||
<entry><code>page</code></entry>
|
||||
<entry><code>page.page</code></entry>
|
||||
|
||||
<entry>The page you want to retrieve</entry>
|
||||
</row>
|
||||
|
||||
Reference in New Issue
Block a user