org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter of 异常

在开发项目的过程中,发现如下异常:

 

 

原因是updateType字段为int类型,不能接收null,而在数据库中对应的字段为null,解决方法:将updateType字段类型改为Integer。

posted @ 2015-03-18 17:28  zhangjb_tech  阅读(413)  评论(0)    收藏  举报