range

abstract fun range(startIndex: Int, lastIndex: Int): PanacheQuery<Entity>

Switch the query to use a fixed range (start index - last index) instead of a page. As the range is fixed, subsequent pagination of the query is not possible.

Return

this query, modified

Parameters

startIndex

the index of the first element, starting at 0

lastIndex

the index of the last element