I need to do a paging using dynamic queries because I have to do many joins, I'm trying to make only a select *
to test the use of the native query + spring data, but the error message is as follows:
Cannot use native queries with dynamic sorting and/or pagination in method public abstract
Follow the code:
@Query(value = "select i.* " + "from VRS.TB_CLIE_INVS i ",nativeQuery = true)
Page<TbClieInv> testePaginacaoQuery(Pageable pageable);