6 lines
568 B
Plaintext
6 lines
568 B
Plaintext
$ mvn -o -B test -Dtest=PaginationTest#limitOffset_translatesToDialectSyntax
|
|
(trimmed to the generated SQL and the test's own RESULT line)
|
|
|
|
select a1_0.id,a1_0.sequence,a1_0.title from article a1_0 where a1_0.title like 'LimitOffset-%' escape '' order by a1_0.sequence offset ? rows fetch first ? rows only
|
|
RESULT[pagination-limit-offset]: setFirstResult(2).setMaxResults(2) over 5 rows ordered by sequence -- page contents: [LimitOffset-3, LimitOffset-4] -- items 3 and 4 of 5, confirming the OFFSET skipped exactly 2 rows and the LIMIT capped the page at exactly 2.
|