Null value was assigned to a property of primitive type setter of的bug

来源:互联网 发布:英语单词词典数据库 编辑:程序博客网 时间:2024/06/09 18:36

Null value was assigned to a property of primitive type setter of

出现这种问题是因为根据hibernate映射生成表时,表中的字段没有写成基本类型的包装类。

比如

private int age;

应该写成:

private Integer age;

就对l

0 0
原创粉丝点击