org.hibernate.PropertyNotFoundException: Could not find a getter for titlse in class com.po.Intro异常
2009-01-04 14:14
731 查看
org.hibernate.PropertyNotFoundException: Could not find a getter for titlse in class com.po.Intro
这个异常说明:
1)getter()方法写错了,没有按照javaBean的规则写.
2)*.hmb.xml中的属性名和pojo中的是否一致.注意:属性名是否多了空格.或者自动生成POJO时没有匹配每个表的*.hmb.xml文件
本人犯了一次这样的错误,重新生成POJO时,pojo和配置文件*.hmb.xml中的属性不相同了
这个异常说明:
1)getter()方法写错了,没有按照javaBean的规则写.
2)*.hmb.xml中的属性名和pojo中的是否一致.注意:属性名是否多了空格.或者自动生成POJO时没有匹配每个表的*.hmb.xml文件
本人犯了一次这样的错误,重新生成POJO时,pojo和配置文件*.hmb.xml中的属性不相同了
相关文章推荐
- org.hibernate.PropertyNotFoundException: Could not find a getter for id in class com.pb.dao.UserDao
- 解决:ould not find a getter for porDate in class com.bc.bean.PortalSheet Caused by: org.hibernate.PropertyNotFoundException: Could
- org.hibernate.PropertyNotFoundException: Could not find a getter for employee in class com.itcast.f_hbm_oneToMany.Department
- hibernate出现:org.hibernate.PropertyNotFoundException: Could not find a getter for id in class
- org.hibernate.PropertyNotFoundException Could not find a getter for id in class
- org.hibernate.PropertyNotFoundException:could not find a getter for name in class ....
- nested exception is org.hibernate.PropertyNotFoundException: Could not find a getter for eNum in class
- org.hibernate.PropertyNotFoundException: Could not find a getter for empDeptId in class
- 错误提示:Caused by: org.hibernate.PropertyNotFoundException: Could not find a getter for ID
- org.hibernate.PropertyNotFoundException: Could not find a getter for XXX
- Hibernate错误 Caused by: org.hibernate.PropertyNotFoundException: Could not find a getter for pnsame i
- org.hibernate.PropertyNotFoundException: Could not find a getter for
- " org.hibernate.PropertyNotFoundException:Could not find a getter for ..
- org.hibernate.PropertyNotFoundException: Could not find a getter
- could not find a getter for ... in class ... 异常的解决
- could not find a getter for ... in class ... 异常的解决
- Could not find a getter for userState in class com.zj.entity.Users
- Debug:SSH继承时 could not find a getter for ... in class ... 异常的解决
- could not find a getter for ... in class ... 异常的解决
- could not find a getter for ... in class ... 异常的原因解析