Native @Query methods should allow Sort if Pageable can accept Sort anyway #2504
Labels
status: declined
A suggestion or change that we don't feel we should currently apply
type: enhancement
A general enhancement
I can write natives queries like
And call with
And the result will be
Good job of integrating
nickname asc
. But if this is possible, thenSort
should be supported directly and not just indirectly viaPageable
. However, usingleads to
But writing
PageRequest.of(0, Integer.MAX_VALUE, sort)
would be the same as passing aSort
instance directly to the method.The text was updated successfully, but these errors were encountered: