com.mybatisflex.test.alias.table.SysDeptTableDef Maven / Gradle / Ivy
package com.mybatisflex.test.alias.table;
import com.mybatisflex.core.query.QueryColumn;
import com.mybatisflex.core.table.TableDef;
// Auto generate by mybatis-flex, do not modify it.
public class SysDeptTableDef extends TableDef {
/**
* 部门。
@author 王帅
@since 2023-11-16
*/
public static final SysDeptTableDef SYS_DEPT = new SysDeptTableDef();
public final QueryColumn ID = new QueryColumn(this, "id");
public final QueryColumn CREATE_BY = new QueryColumn(this, "create_by");
public final QueryColumn DEPT_NAME = new QueryColumn(this, "dept_name");
public final QueryColumn UPDATE_BY = new QueryColumn(this, "update_by");
public final QueryColumn CREATE_TIME = new QueryColumn(this, "create_time");
public final QueryColumn UPDATE_TIME = new QueryColumn(this, "update_time");
/**
* 所有字段。
*/
public final QueryColumn ALL_COLUMNS = new QueryColumn(this, "*");
/**
* 默认字段,不包含逻辑删除或者 large 等字段。
*/
public final QueryColumn[] DEFAULT_COLUMNS = new QueryColumn[]{ID, CREATE_BY, DEPT_NAME, UPDATE_BY, CREATE_TIME, UPDATE_TIME};
public SysDeptTableDef() {
super("", "sys_dept");
}
private SysDeptTableDef(String schema, String name, String alisa) {
super(schema, name, alisa);
}
public SysDeptTableDef as(String alias) {
String key = getNameWithSchema() + "." + alias;
return getCache(key, k -> new SysDeptTableDef("", "sys_dept", alias));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy