日期:2014-05-19  浏览次数:20792 次

SQL改写HQL语言问题~
select * from (select * from news order by desc) t where rownum<7;

请问这个 用HQL语句怎么写?

------解决方案--------------------
hql="from news order by desc"

然后去出session,
session.setMaxCounts(6);