Questions tagged «hibernate3»

14
如何在JPQL或HQL中进行限制查询?
在Hibernate 3中,有没有办法等效于以下HQL中的MySQL限制? select * from a_table order by a_table_column desc limit 0, 20; 如果可能的话,我不想使用setMaxResults。在旧版本的Hibernate / HQL中,这肯定是可能的,但似乎已经消失了。
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.