Skip to content

QueryDSL: Pagination with Order By on composite key not possible #1990

Discussion options

You must be logged in to vote
  • messageBundle.id().key.lower() is entropy reducing, therefore uniqueness cannot be determined anymore and Blaze-Persistence rejects this kind of ordering for pagination purposes in order to provide deterministic results.
  • You need to order by all columns of the PK. So .orderBy(messagebundleId.id().key, messagebundleId.id().locale, messagebundleId.id().bundle).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@theobisproject
Comment options

Answer selected by theobisproject
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants