以下三种方式选择一种即可:
- 使用
transient
修饰
private transient String noColumn;
- 使用
static
修饰
private static String noColumn;
- 使用
TableField
注解
@TableField(exist=false)
private String noColumn;
排除实体父类属性
使用 transient
修饰需要排除的父类属性
/**
* 忽略父类 createTime 字段映射
*/
private transient String createTime;