这里是错误信息:
Caused by: line 1:188: expecting CLOSE, found 'null'
org.hibernate.hql.ast.QuerySyntaxException: expecting CLOSE, found 'null' near line 1, column 188 [ from com.wowo.homefitment.beans.ProductInfo as p inner join p.brandInfo where p.brandInfo.brandId in (select p.brandInfo.brandId from p.brandInfo where p.brandInfo.brandName like'%雅鼎%']
这个是转换的hibernate语句:
String hqlsql1 = " from ProductInfo as p inner join p.brandInfo where p.brandInfo.brandId in (select p.brandInfo.brandId from p.brandInfo where p.brandInfo.brandName like'%"+condition+"%'";
==================
我落了一个 ')'
from VStaff o where o.IDNumber in (select p.IDNumber from Participant p
添上 问题解决
http://topic.csdn.net/u/20080312/17/0090cdd5-754e-48f2-ba15-c1a8650fff2c.html
同这个哥们犯得同样的错误