我正在使用Spring hibernate。
我的代码如下:
String hql = "select a.candidate_id_fk, count(*) from Answers a , Question b where a.question_id_fk = b.id"+""
+"and a.answer=b.correct_answer group by a.candidate_id_fk";
Session session = sessionFactory.getCurrentSession();
List list = session.createQuery(hql).list();
错误: org.hibernate.hql.internal.ast.ErrorCounter reportError 意外的令牌:a