自由飛翔

          我在仰望,java之上

          統(tǒng)計(jì)

          留言簿(2)

          我關(guān)注的blog

          閱讀排行榜

          評(píng)論排行榜

          異常積累:org.hibernate.exception.SQLGrammarException: could not execute query-hibernate解釋后的sql語句有問題

          錯(cuò)誤信息
          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設(shè)置分頁的first與max為0;



          Gavin

          posted on 2011-10-27 14:33 GavinMiao 閱讀(9300) 評(píng)論(1)  編輯  收藏 所屬分類: 異常積累

          評(píng)論

          # re: 異常積累:org.hibernate.exception.SQLGrammarException: could not execute query-hibernate解釋后的sql語句有問題 2016-06-15 21:34 wshiwangite

          寫的不錯(cuò),問題解決了...  回復(fù)  更多評(píng)論   

          主站蜘蛛池模板: 波密县| 和林格尔县| 咸阳市| 石城县| 天全县| 宽甸| 乐业县| 佳木斯市| 丰都县| 卢湾区| 红安县| 五台县| 清新县| 炎陵县| 阿城市| 栾城县| 海兴县| 土默特右旗| 肥西县| 兴国县| 宝清县| 通渭县| 东明县| 海门市| 马公市| 周至县| 长宁区| 韩城市| 通城县| 刚察县| 临武县| 滨海县| 连州市| 三都| 阿克陶县| 郁南县| 吉木乃县| 诏安县| 聊城市| 江津市| 祁阳县|