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
5 views



Related Hot Questions



Government Jobs Opening


...