com.github.zhuyizhuo.generator.mybatis.vo.TableInfoFtl Maven / Gradle / Ivy
package com.github.zhuyizhuo.generator.mybatis.vo;
import com.github.zhuyizhuo.generator.mybatis.dto.JavaColumnInfo;
import com.google.common.collect.Lists;
import com.github.zhuyizhuo.generator.mybatis.dto.JavaColumnInfo;
import java.util.LinkedHashSet;
import java.util.List;
/**
* class: TableInfoFtl
* description: 生成模板所用对象
* time: 2018/8/3 19:56
*
* @author yizhuo
* @version 1.0
*/
public class TableInfoFtl {
/** 数据库名称 */
private String tableSchema;
/** 表名 */
private String tableName;
/** 表注释 */
private String tableComment;
/** java表名 驼峰 首字母大写 */
private String javaTableName;
/** 导入的类路径 */
private LinkedHashSet importPackages = new LinkedHashSet();
/** 表字段 */
private List columnLists = Lists.newArrayList();
public String getTableSchema() {
return tableSchema;
}
public void setTableSchema(String tableSchema) {
this.tableSchema = tableSchema;
}
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 List getColumnLists() {
return columnLists;
}
public void addJavaColumnInfo(JavaColumnInfo javaColumnInfo) {
this.columnLists.add(javaColumnInfo);
}
public String getJavaTableName() {
return javaTableName;
}
public void setJavaTableName(String javaTableName) {
this.javaTableName = javaTableName;
}
public LinkedHashSet getImportPackages() {
return importPackages;
}
public void addImportPackages(String importPackage) {
this.importPackages.add(importPackage);
}
@Override
public String toString() {
return "TableInfoFtl{" +
"tableSchema='" + tableSchema + '\'' +
", tableName='" + tableName + '\'' +
", tableComment='" + tableComment + '\'' +
", javaTableName='" + javaTableName + '\'' +
", importPackages=" + importPackages +
", columnLists=" + columnLists +
'}';
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy