日期:2014-05-17  浏览次数:20716 次

怎么将下面的查询语句转化为Hibernate语句
select t.goodsnum,t.count from (select * from tbl_goods order by count desc) t where rownum between 1 and 5  


------解决方案--------------------
使用native sql http://www.redsaga.com/hibernate-ref/3.2/html/querysql.html