org.hibernate.hql.ast.QuerySyntaxException: unexpected token: * near line 1, column 8* near line 1, column 8 [select * from (select t.*, rownum rn from edu.rjxy.entity.Task t) where rn>=(?-1)*?+1 and rn

来源:学生作业帮助网 编辑:作业帮 时间:2024/04/20 12:02:35
org.hibernate.hql.ast.QuerySyntaxException: unexpected token: * near line 1, column 8* near line 1, column 8 [select * from (select t.*, rownum rn from edu.rjxy.entity.Task t) where rn>=(?-1)*?+1 and rn

org.hibernate.hql.ast.QuerySyntaxException: unexpected token: * near line 1, column 8* near line 1, column 8 [select * from (select t.*, rownum rn from edu.rjxy.entity.Task t) where rn>=(?-1)*?+1 and rn
org.hibernate.hql.ast.QuerySyntaxException: unexpected token: * near line 1, column 8
* near line 1, column 8 [select * from (select t.*, rownum rn from edu.rjxy.entity.Task t) where rn>=(?-1)*?+1 and rn

org.hibernate.hql.ast.QuerySyntaxException: unexpected token: * near line 1, column 8* near line 1, column 8 [select * from (select t.*, rownum rn from edu.rjxy.entity.Task t) where rn>=(?-1)*?+1 and rn
你的HQL语句错了,检查一下 HQL语句 ,如果测试可以 打印出sql语句测试 在hibernate中加入参数 show_sql 值为 true