主题 : 2.42 貌似这句hql有问题 标签取数据
级别: 白丁
UID: 8674
积分:1 加为好友
威望: 0 精华: 0
主题:0 回复:1
注册时间:2010-07-04
在线时长:0
1#   发表于:2011-01-05 10:48:49  IP:122.122.*.*
class ArticleDaoImpl 


Finder f = Finder.create("select bean from Article bean");
                                 if (chnlId != null) {
  f.append(" inner join bean.channel node,CmsChannel parent");
     f.append(" where node.lft between parent.lft and parent.rgt");
f.append(" and parent.id=:chnlId").setParam("chnlId", chnlId);
 } else if (topicId != null) {
级别: 童生
UID: 10739
积分:3 加为好友
威望: 0 精华: 0
主题:0 回复:3
注册时间:2010-09-08
在线时长:0
2#   发表于:2011-01-05 10:53:17  IP:59.136.*.*
您好,什么地方出错了?
1 共1页