通用Mapper警告:建议修改基本类型为对应的包装类型!

通用Mapper错误警告:

通用 Mapper 警告信息:<[EntityColumn{table=tb_spec_param, property=‘id’, column=‘id’, javaType=long, jdbcType=null,typeHandler=null, id=true, identity=false, blob=false, generator=‘null’, orderBy=‘null’,
insertable=true, updatable=true, order=DEFAULT}]>使用了基本类型,基本类型在动态 SQL 中由于存在默认值,因此任何时候都不等于 null,建议修改基本类型为对应的包装类型!

  

解决方法:

  修改实体类中所有基本类型为包装类型,例:int改为Integer,包括setter方法

原文地址:https://www.cnblogs.com/nirvanaInSilence/p/12752612.html