您的位置:首页 > 产品设计 > UI/UE

异常积累:org.hibernate.exception.SQLGrammarException: could not execute query-hibernate解释后的sql语句有问题

2016-09-11 00:00 579 查看

错误信息
Hibernate:

select

first 0 agentstate0_.id as id2_,

agentstate0_.agentid as agentid2_,

agentstate0_.agentpassword as agentpas3_2_,

agentstate0_.agenttype as agenttype2_,

agentstate0_.apptype as apptype2_,

agentstate0_.autoidle as autoidle2_,

agentstate0_.autoworkinterval as autowork7_2_,

agentstate0_.autoworkon as autoworkon2_,

agentstate0_.devicenumber as devicenu9_2_,

agentstate0_.donotdistribute as donotdi10_2_,

agentstate0_.group_id as group11_2_,

agentstate0_.phonetype as phonetype2_

from

cts_agentinfo agentstate0_

where

agentstate0_.group_id='999999'

WARN - SQL Error: -201, SQLState: 42000

ERROR - A syntax error has occurred.

ERROR - Error:

org.hibernate.exception.SQLGrammarException: could not execute query
原因1:hibernate方言有问题
原因2:hibernate设置分页的first与max为0;
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐