Skip to content

Default @Query(sort) not applied for repository queries using keyset pagination #4758

Closed
@mp911de

Description

@mp911de

Using a query such as

@Query(value = "{country:  'USA'}", sort = "{lastName:  -1, firstName: -1}")
Window<Person> findBy(Limit limit, ScrollPosition scrollPosition);

does not apply the default sort for keyset pagination because the decorated query proxy doesn't handle the isSorted method used by ScrollUtils.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions