主题 : 请教个hql的问题
级别: 商业授权用户
UID: 57060
积分:21 加为好友
威望: 1 精华: 0
主题:3 回复:16
注册时间:2014-01-13
在线时长:0
1#   发表于:2014-01-14 18:29:24  IP:222.216.*.*
Finder f = Finder
.create("from CmsMail bean where 1=1 order by bean.id desc");
// 指定最大查询数目
f.setMaxResults(7);
return find(f);
想要得到该表中按id倒序的前7个结果是这样子写么?
1 共1页