Chinaunix首页 | 论坛 | 博客
  • 博客访问: 547837
  • 博文数量: 136
  • 博客积分: 4010
  • 博客等级: 上校
  • 技术积分: 1343
  • 用 户 组: 普通用户
  • 注册时间: 2008-08-19 23:18
文章分类

全部博文(136)

文章存档

2011年(28)

2009年(60)

2008年(48)

我的朋友

分类: Java

2009-05-13 10:39:54

Java代码 
  1. org.springframework.orm.hibernate.HibernateSystemException: exception setting property value with CGLIB (set hibernate.cglib.use_reflection_optimizer=false for more info) setter of  xxx.xxx.xxx.setXxxx; nested exception is net.sf.hibernate.PropertyAccessException: exception setting property value with CGLIB (set hibernate.cglib.use_reflection_optimizer=false for more info) setter of xxx.xxx.xxx.setXxxx  

 

 

1.exception setting property value with CGLIB (set hibernate.cglib.use_reflection_optimizer=false for more info) setter of 
又见这样的错误,原因是对于一些数字项由于从数据库里面取出的值为null 

2.映射为bolean的字段,在建表时,如果没有设定字段的default值,会导致exception setting property value with CGLIB setter错误.设置好默认值问题就可以解决了
 

阅读(1825) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~