hql 的setParameter不能使用antlr.collections.AST.getLine()的异常

List mylList = session
.createQuery(
"select s.id,s.title from TopicCare as t left join t.topic as s where t.user.id=:myid")
.setParameter("myid", 1l).list();

这个问题是你的编译其中struts中和hibernate中都有antlr的包将struts中的antrl包删除即可;

原文地址:https://www.cnblogs.com/jie123/p/5308682.html