expecting CLOSE, found 'null'

来源:互联网 发布:长沙网络公关公司 编辑:程序博客网 时间:2024/06/06 08:42

这里是错误信息: 
springframework.orm.hibernate3.HibernateQueryException: expecting CLOSE, found 'null' near line 1, column 106 [from cn.mani123.domain.Product where id in (select product from cn.mani123.domain.Order where account = 1]; nested exception is org.hibernate.hql.ast.QuerySyntaxException: expecting CLOSE, found 'null' near line 1, column 106 [from cn.mani123.domain.Product where id in (select product from cn.mani123.domain.Order where account = 1]

这个是转换的hibernate语句: 
String hql = "from Product where id in (select product from Order where account = " + id ;

 

==================

 

我落了一个 ')'

String hql = "from Product where id in (select product from Order where account = " + id + ")";

 

 

添上 问题解决

 

 

http://topic.csdn.net/u/20080312/17/0090cdd5-754e-48f2-ba15-c1a8650fff2c.html

 

同这个哥们犯得同样的错误

阅读全文
0 0
原创粉丝点击