追隨Java
          簡單的事情重復做,就會產生累積效應!
          posts - 260,  comments - 338,  trackbacks - 0
          ?org.hibernate.PropertyNotFoundException: Could not find a getter for empDeptId? in class com.legend.shipment.Temployee
          這個問題表明:
          ??? 1)getter()方法寫錯了,沒有按照javaBean的規則寫.
          ??? 2)*.hmb.xml中的屬性名和pojo中的是否一致.注意:屬性名是否多了空格.
          posted on 2006-03-27 10:57 Harryson 閱讀(8716) 評論(5)  編輯  收藏 所屬分類: Hibernate

          FeedBack:
          # re: org.hibernate.PropertyNotFoundException: Could not find a getter for empDeptId in class com.legend.shipment.Temployee
          2008-11-19 13:47 | 胡素苗
          真是非常感謝你,通過你的貼子,我解決了我的問題……  回復  更多評論
            
          # re: org.hibernate.PropertyNotFoundException: Could not find a getter for empDeptId in class com.legend.shipment.Temployee
          2009-04-22 08:45 | ahoo
          謝謝,非常好,真的是多了一個空格。  回復  更多評論
            
          # re: org.hibernate.PropertyNotFoundException: Could not find a getter for empDeptId in class com.legend.shipment.Temployee[未登錄]
          2009-06-17 09:47 | 陳祥博
          如果不是這個問題,
          請注意javaBean 屬性命名的時候第二個字母不要大寫。  回復  更多評論
            
          # re: org.hibernate.PropertyNotFoundException: Could not find a getter for empDeptId in class com.legend.shipment.Temployee[未登錄]
          2009-12-25 20:14 | li
          謝謝哦
          我的問題也解決了
          果然是沒按照JAVABEAN的規范寫  回復  更多評論
            
          # re: org.hibernate.PropertyNotFoundException: Could not find a getter for empDeptId in class com.legend.shipment.Temployee
          2011-09-19 22:18 | sos
          太謝謝了 這個問題我找了很久 謝謝  回復  更多評論
            

          <2011年9月>
          28293031123
          45678910
          11121314151617
          18192021222324
          2526272829301
          2345678

          常用鏈接

          留言簿(10)

          隨筆分類(319)

          AJAX

          Coffee House

          CSS

          Java

          JavaScript

          Open Source

          ProjectManagement

          友情Blog

          最新隨筆

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 马山县| 内丘县| 五莲县| 建昌县| 马山县| 安化县| 长泰县| 通道| 荣昌县| 吴江市| 新津县| 崇州市| 巩留县| 雷山县| 伊宁县| 衢州市| 郑州市| 合山市| 彭州市| 韶山市| 祁东县| 仙居县| 凌海市| 梅河口市| 远安县| 扶余县| 合水县| 克拉玛依市| 乳山市| 朝阳县| 白朗县| 固始县| 台南县| 凤冈县| 伊春市| 安远县| 东乡族自治县| 达日县| 星子县| 泸西县| 新郑市|