?org.hibernate.PropertyNotFoundException: Could not find a getter
for empDeptId? in class com.legend.shipment.Temployee
這個問題表明:
??? 1)getter()方法寫錯了,沒有按照javaBean的規(guī)則寫.
??? 2)*.hmb.xml中的屬性名和pojo中的是否一致.注意:屬性名是否多了空格.
posted on 2006-03-27 10:57
Harryson 閱讀(8698)
評論(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
# 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 |
謝謝哦
我的問題也解決了
果然是沒按照JAVABEAN的規(guī)范寫
回復 更多評論
# re: org.hibernate.PropertyNotFoundException: Could not find a getter for empDeptId in class com.legend.shipment.Temployee