This is a problem similar to: HQL - row identifier for pagination
I\'m trying to implement pagination using HQL. I have a PostgreSQL database.
int el
Most probably, if you create your own query with HQL, query builder methods cannot parse custom hql query and alter it. Therefore you should put your LIMIT ?, ? statement at the end of your HQL query and bind offset parameters then.
LIMIT ?, ?