轉自: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
2.映射爲boolean的字段,在建表時,如果沒有設定字段的default值,會導致exception setting property
value with CGLIB setter錯誤.設置好默認值問題就可以解決了