hql unexpected token 错误解决【原创】
???????????? <column name="OBJECT" length="1000">
???????????????? <comment>布发对象,头尾和对象间均加半角逗号</comment>
???????????? </column>
???????? </property>
最后的解决办法是用别名来:
String hql = "from TIssue sue where sue.id in ('167','169','170','171','172','173') and sue.object = ',B01,'";
?
就行了~可能是hibernate把字段object当成了关键字,或是hql要别名才不会报奇怪的错?总之是这样解决了~
?