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 10, 2015 by CandraW24lwn
0 votes
7 views



Related Hot Questions

6 Answers

0 votes
NULL
answered Sep 10, 2015 by SueBassvxvnb
0 votes
NULL
answered Sep 10, 2015 by MarChapa
0 votes
NULL
answered Sep 10, 2015 by FeliciaQrw26
0 votes
NULL
answered Sep 10, 2015 by CleMcCulloc
0 votes
NULL
answered Sep 10, 2015 by MarWaddell
0 votes
NULL
answered Sep 10, 2015 by LorShimizu

...