追随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 阅读(8667) 评论(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
太谢谢了 这个问题我找了很久 谢谢  回复  更多评论
  

只有注册用户登录后才能发表评论。


网站导航:
 

<2006年3月>
2627281234
567891011
12131415161718
19202122232425
2627282930311
2345678

常用链接

留言簿(10)

随笔分类(319)

AJAX

Coffee House

CSS

Java

JavaScript

Open Source

ProjectManagement

友情Blog

最新随笔

最新评论

阅读排行榜

评论排行榜