这里是错误信息:
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
同这个哥们犯得同样的错误