style: 添加 ColumnConfig 类的属性注释。

This commit is contained in:
Suomm 2023-06-21 22:11:56 +08:00
parent 04f2826176
commit 1b1d469891

View File

@ -1,4 +1,4 @@
/**
/*
* Copyright (c) 2022-2023, Mybatis-Flex (fuhai999@gmail.com).
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
@ -21,30 +21,81 @@ import org.apache.ibatis.type.TypeHandler;
import java.io.Serializable;
/**
* 表字段的单独设置
*/
public class ColumnConfig implements Serializable {
/**
* 字段名称
*/
private String columnName;
/**
* insert 的时候默认值这个值会直接被拼接到 sql 而不通过参数设置
*/
private String onInsertValue;
/**
* update 的时候自动赋值这个值会直接被拼接到 sql 而不通过参数设置
*/
private String onUpdateValue;
/**
* 是否是大字段大字段 APT 不会生成到 DEFAULT_COLUMNS
*/
private Boolean isLarge;
/**
* 是否是逻辑删除字段一张表中只能存在 1 一个逻辑删除字段
*/
private Boolean isLogicDelete;
/**
* 是否为乐观锁字段
*/
private Boolean version;
/**
* 配置的 jdbcType
*/
private JdbcType jdbcType;
/**
* 自定义 TypeHandler
*/
private Class<? extends TypeHandler> typeHandler;
/**
* 脱敏方式
*/
private String mask;
/**
* 字段是否为主键
*/
private boolean isPrimaryKey = false;
/**
* ID 生成策略
*/
private KeyType keyType;
/**
* ID 生成器值
*/
private String keyValue;
/**
* sequence 序列执行顺序
*/
private Boolean keyBefore;
/**
* 是否是租户 ID
*/
private Boolean tenantId;
public String getColumnName() {
return columnName;
}
@ -156,4 +207,5 @@ public class ColumnConfig implements Serializable {
public void setTenantId(Boolean tenantId) {
this.tenantId = tenantId;
}
}