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

被折叠的 条评论
为什么被折叠?



