Hibernate - HQL pagination

后端 未结 6 1151
醉话见心
醉话见心 2020-12-30 00:04

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         


        
6条回答
  •  北荒
    北荒 (楼主)
    2020-12-30 00:27

    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.

提交回复
热议问题