自由飛翔

          我在仰望,java之上

          統計

          留言簿(2)

          我關注的blog

          閱讀排行榜

          評論排行榜

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

          錯誤信息
          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;



          Gavin

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

          評論

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

          寫的不錯,問題解決了...  回復  更多評論   

          主站蜘蛛池模板: 大渡口区| 定州市| 贵定县| 宜兰县| 南陵县| 墨玉县| 高青县| 太康县| 思南县| 安塞县| 龙江县| 福鼎市| 瑞安市| 怀安县| 张家港市| 天长市| 陈巴尔虎旗| 元阳县| 巫溪县| 聊城市| 江川县| 武鸣县| 辽中县| 恭城| 柳江县| 塘沽区| 新津县| 苍山县| 塔城市| 长葛市| 海淀区| 廉江市| 五峰| 隆安县| 荥经县| 盈江县| 隆子县| 外汇| 绥棱县| 邵武市| 萍乡市|