expecting CLOSE, found 'null' near line 1 colum 110
错误信息如下:
Caused by: line 1:188: expecting CLOSE, found 'null'
org.hibernate.hql.ast.QuerySyntaxException: expecting CLOSE, found 'null' near line 1, column 188 [select distinct(a.infoId) from com.ver.entity.Info a where a.demId in ( select fun2.demandinfoId from com.ver.entity.Info b where b.id in (271)
原因:hql语句少了一个')',hibernate在转换的时候报错。
本文分析了一条具体的HQL查询语句中出现的语法错误,指出由于缺少右括号导致Hibernate在解析过程中报错,并提供了相应的修正建议。

1329

被折叠的 条评论
为什么被折叠?



