Null value was assigned to a property of primitive type setter of cn.mrlij.pojo.SetItem.bz; nested e

Null value was assigned to a property of primitive type setter of cn.mrlij.pojo.SetItem.bz; nested exception is org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter of cn.mrlij.pojo.SetItem.bz

打印错误如上:

错误原因:Hibernate 在原有表基础上新增一行double 类的bz,使得原有的数据bz这一行就是NULL,

<property name="bz" ></property> 

解决方法:删除表中的数据。

上一篇:Android:将JSON转换为POJO是否正确?


下一篇:jeecg 默认为空的字段值是如何被填充的?