Hibernate pagination not working when using native queries (Named query exists but its result type is not compatible)
I have a two named native queries in my orm.xml, one for retrieving the data, and one for doing the count for my pagination:
select count(*) from
from person
select first_name, last_name
from person
To load this data, I have a Spring Data Repository, which loads a projection of the data (my actual code is more complex than the provided example):
@Query(nativeQuery = true)
fun findPeople(pageable: Pageable): Page
Now, when I execute the above code,...