null value was assigned to a property ofhibernate(设立HIbernate属性)

null value was assigned to a property ofhibernate(设置HIbernate属性)

关键字: null value was assigned to a property ofhibernate int型数据无法读取 问题描述:Null value was assigned to a property of primitive type setter  ,hibernate int型数据无法读取 hiberante读int 整型数据出错 hiberante读数据库出错

不要使用基本类型,使用包装类型 如不要用int 用Integer