top.tanmw.generator.ColumnClass Maven / Gradle / Ivy
package top.tanmw.generator;
/**
* 数据库字段封装类
*
* @author TMW
* @date 2021/2/26 14:55
*/
public class ColumnClass {
/**
* 数据库字段名称
**/
private String columnName;
/**
* 数据库字段类型
**/
private String columnType;
/**
* 数据库字段首字母小写且去掉下划线字符串
**/
private String changeColumnName;
/**
* 数据库字段注释
**/
private String columnComment;
/***
* 数据库主键
*/
private boolean primaryKey;
public boolean isPrimaryKey() {
return primaryKey;
}
public ColumnClass setPrimaryKey(boolean primaryKey) {
this.primaryKey = primaryKey;
return this;
}
public String getColumnComment() {
return columnComment;
}
public void setColumnComment(String columnComment) {
this.columnComment = columnComment;
}
public String getColumnName() {
return columnName;
}
public void setColumnName(String columnName) {
this.columnName = columnName;
}
public String getColumnType() {
return columnType;
}
public void setColumnType(String columnType) {
this.columnType = columnType;
}
public String getChangeColumnName() {
return changeColumnName;
}
public void setChangeColumnName(String changeColumnName) {
this.changeColumnName = changeColumnName;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy