Skip to content

Commit

Permalink
mention where keyset pagination came from
Browse files Browse the repository at this point in the history
Signed-off-by: Gavin King <gavin@hibernate.org>
  • Loading branch information
gavinking committed Apr 22, 2024
1 parent 4c3f8a6 commit 967a52f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions documentation/src/main/asciidoc/repositories/Pagination.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,11 @@ The cost is that page numbers can lose synchronization with the query result set
This isn't usually a problem, but it's something to be aware of.
====

****
Direct API support for key-based pagination originated in the work of Hibernate team member Christian Beikov back in 2015 in the Blaze-Persistence framework.
It was adopted from there by the Jakarta Data specification, and is now even available in Hibernate ORM via the link:{doc-javadoc-url}org/hibernate/query/KeyedPage.html[`KeyedPage`]/link:{doc-javadoc-url}org/hibernate/query/KeyedResultList.html[`KeyedResultList`] API.
****

=== Advanced control over querying

For more advanced usage, an automatic or annotated query method may be declared to return `jakarta.persistence.Query`, `jakarta.persistence.TypedQuery`, link:{doc-javadoc-url}org/hibernate/query/Query.html[`org.hibernate.query.Query`], or link:{doc-javadoc-url}org/hibernate/query/SelectionQuery.html[`org.hibernate.query.SelectionQuery`].
Expand Down

0 comments on commit 967a52f

Please sign in to comment.