首页 > 代码库 > Null value was assigned to a property of primitive type setter of

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

Null value was assigned to a property of primitive type setter of com.zsba.AdornCompanyInfo.provinceOrderMember

 

Integer   order和int   order;的区别: 
Integer是对象.     order   =   null;   对象可以为空.   
int   是普通类型,     不可能   =   null.       
数据库order是可以空的,   故应该映射成Integer.     

一般在javabean中用Integer不会产生这样的错误