Exception setting properties value with CFLIB

来源:互联网 发布:macbook 修图软件 编辑:程序博客网 时间:2024/06/05 19:01

转自:http://blog.csdn.net/leidengyan/article/details/3015030

exception setting property value with CGLIB (set

hibernate.cglib.use_reflection_optimizer=false for more info) setter of


1.错误原因有可能是因为。你的字段中有个字段是数值类型的如int,long等对于一些数字项由于从
数据库里面取出的值为null


2.映射为boolean的字段,在建表时,如果没有设定字段的default值,会导致exception setting property

value with CGLIB setter错误.设置好默认值问题就可以解决了

阅读全文
0 0
原创粉丝点击