Null value was assigned to a property of primitive type setter of com.database.bean.Bookinfo.price

来源:互联网 发布:淘宝美工助理学历要求 编辑:程序博客网 时间:2024/06/08 15:29
price的值为空时查询出现错误org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter of com.database.bean.Bookinfo.price
 
因为空值赋给了对象,所以报错。