LittleRain

          小雨不打傘 打傘雨不小

          Hibernate錯誤拾集

          1)"Caused by: java.sql.SQLException: Syntax error or access violation message from server: "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'group, testoption.content as content, testoption.score as score, testoption.Ques' at line 1"
          ----:在你的pojo中定義了數據庫的key word,例如:group等等.

          2)net.sf.hibernate.QueryException: could not resolve property type: username [select user.password from cn.org.sppc.ipmanager.User user where user.username=?]
          ----:username在Form類中、在Hibernate的xml文件中和相對應的PO對象中名稱都要保持一致(包括大小寫)。包括struts-config.xml中的。

          posted on 2007-03-14 09:10 小雨不打傘 閱讀(535) 評論(0)  編輯  收藏 所屬分類: 數據庫

          公告

          點擊這里給我發消息 QQ:232720563


            MSN:new_haihua@hotmail.com

          導航

          統計

          常用鏈接

          留言簿(2)

          隨筆分類(51)

          最新隨筆

          積分與排名

          最新評論

          閱讀排行榜

          主站蜘蛛池模板: 泾源县| 舟山市| 吴堡县| 潜江市| 安远县| 萝北县| 五原县| 德庆县| 斗六市| 南汇区| 葵青区| 兴隆县| 盐城市| 济源市| 旺苍县| 庆阳市| 兴安县| 浮梁县| 闵行区| 丰台区| 伊宁县| 南雄市| 莒南县| 东海县| 商南县| 明溪县| 商洛市| 莆田市| 保亭| 泸水县| 黄浦区| 鄯善县| 通化市| 凭祥市| 蓝田县| 柏乡县| 阳城县| 黎川县| 明溪县| 乐陵市| 莆田市|