com.github.xiaoyuge5201.entity.ColumnEntity Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of datasource-spring-boot-starter Show documentation
Show all versions of datasource-spring-boot-starter Show documentation
数据库连接工具,查询mysql、oracle、sqlserver、postgresql的数据表以及字段信息;同时支持导出数据库设计文档
package com.github.xiaoyuge5201.entity;
import java.io.Serializable;
/**
* 数据库字段信息
* @author ghy
* @since 2021/2/5 9:16
*/
public class ColumnEntity implements Serializable {
/**
* 字段名称
*/
private String columnName;
/**
* 字段类型
*/
private String dataType;
/**
* 字段最大长度
*/
private String characterMaximunLength;
/**
* 是否为空
*/
private String isNullable;
/**
* 字段 默认值
*/
private String columnDefault;
/**
* 字段注释
*/
private String columnComment;
/**
* 表名称
*/
private String tableName;
/**
* 表注释
*/
private String tableComment;
/**
* 相对应的java名称
* 根据驼峰命名规则,转化而来的
*/
private String javaName;
public String getColumnName() {
return columnName;
}
public void setColumnName(String columnName) {
this.columnName = columnName;
}
public String getDataType() {
return dataType;
}
public void setDataType(String dataType) {
this.dataType = dataType;
}
public String getCharacterMaximunLength() {
return characterMaximunLength;
}
public void setCharacterMaximunLength(String characterMaximunLength) {
this.characterMaximunLength = characterMaximunLength;
}
public String getIsNullable() {
return isNullable;
}
public void setIsNullable(String isNullable) {
this.isNullable = isNullable;
}
public String getColumnDefault() {
return columnDefault;
}
public void setColumnDefault(String columnDefault) {
this.columnDefault = columnDefault;
}
public String getColumnComment() {
return columnComment;
}
public void setColumnComment(String columnComment) {
this.columnComment = columnComment;
}
public String getTableName() {
return tableName;
}
public void setTableName(String tableName) {
this.tableName = tableName;
}
public String getTableComment() {
return tableComment;
}
public void setTableComment(String tableComment) {
this.tableComment = tableComment;
}
public String getJavaName() {
return javaName;
}
public void setJavaName(String javaName) {
this.javaName = javaName;
}
}