nested exception is org.hibernate.PropertyAccessException: Null value was assigned to a property of
在工程中用了jpa,但是总是报这个错误,数据库是int类型,但是有null值,在java实体类中用int接受的,所以报了这个错误,应该改用Integer,其它基本类型也是如此
实时内容请关注微信公众号,公众号与博客同时更新:程序员星星
nested exception is org.hibernate.PropertyAccessException: Null value was assigned to a property of
在工程中用了jpa,但是总是报这个错误,数据库是int类型,但是有null值,在java实体类中用int接受的,所以报了这个错误,应该改用Integer,其它基本类型也是如此
实时内容请关注微信公众号,公众号与博客同时更新:程序员星星