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包删除即可;

 

posted @ 2016-03-22 21:52  杰骜不驯  阅读(172)  评论(0编辑  收藏  举报