expecting CLOSE found 'null'

               

这里是错误信息:
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

添上 问题解决

扫描二维码关注公众号,回复: 5961464 查看本文章

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

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

           

猜你喜欢

转载自blog.csdn.net/qq_44894359/article/details/89398666