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

price的值为空时查询出现错误org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter of com.database.bean.Bookinfo.price
 
因为空值赋给了对象,所以报错。

你可能感兴趣的:(Null value was assigned to a property of primitive type setter of com.database.bean.Bookinfo.price)