转自:http://blog.youkuaiyun.com/leidengyan/article/details/3015030
exception setting property value with CGLIB (set
hibernate.cglib.use_reflection_optimizer=false for more info) setter of
2.映射为boolean的字段,在建表时,如果没有设定字段的default值,会导致exception setting property
value with CGLIB setter错误.设置好默认值问题就可以解决了