add getType and setType

This commit is contained in:
Looly 2024-11-01 12:14:42 +08:00
parent 05342b48d7
commit ec60393c28

View File

@ -197,6 +197,26 @@ public class Column implements Serializable, Cloneable {
return this;
}
/**
* 获取数据库字段类型包括长度
*
* @return 数据库字段类型包括长度
*/
public ColumnType getType() {
return type;
}
/**
* 设置数据库字段类型包括长度
*
* @param type 数据库字段类型包括长度
* @return this
*/
public Column setType(final ColumnType type) {
this.type = type;
return this;
}
/**
* 获取小数位数
*