String hql = "from Question join Ask on " +
"Question.id=Ask.question_id where Question.id=?";
List list = this.getHibernateTemplate().find(hql, new int[] { id }); 这个是我的语句 但是它报错org.springframework.orm.hibernate3.HibernateQueryException: unexpected token: on near line 1, column 44 [from com.ccniit.lc.beans.Question join Ask on Question.id=Ask.question_id where Question.id=?]; nested exception is org.hibernate.hql.ast.QuerySyntaxException: unexpected token: on near line 1, column 44 [from com.ccniit.lc.beans.Question join Ask on Question.id=Ask.question_id where Question.id=?]