Pre Exam Test Practice (SSC | Banking | IAS | GATE | State Level | CLAT | Railways | Insurance | Teaching Exams | NDA | Defence | IES |State Exam )

Organizational Research By

Surprising Reserch Topic

how do you do a limit query in hql

how do you do a limit query in hql  using -'java,hibernate,hql'

In Hibernate 3, is there a way to do the equivalent of the following MySql limit in HQL.

select * from a_table order by a_table_column desc limit 0, 20;

I don't want to use setMaxResults if possible.  This definitely was possible in the older version of Hibernate/HQL, but seems to have disappeared.

asked Sep 9, 2015 by HungKahlctcu
0 votes

Related Hot Questions

Government Jobs Opening