com.mybatisflex.test.relation.onetoone.table.RoleTableDef Maven / Gradle / Ivy
The newest version!
package com.mybatisflex.test.relation.onetoone.table;
import com.mybatisflex.core.query.QueryColumn;
import com.mybatisflex.core.table.TableDef;
// Auto generate by mybatis-flex, do not modify it.
public class RoleTableDef extends TableDef {
public static final RoleTableDef ROLE = new RoleTableDef();
public final QueryColumn ID = new QueryColumn(this, "id");
public final QueryColumn NAME = new QueryColumn(this, "name");
/**
* 所有字段。
*/
public final QueryColumn ALL_COLUMNS = new QueryColumn(this, "*");
/**
* 默认字段,不包含逻辑删除或者 large 等字段。
*/
public final QueryColumn[] DEFAULT_COLUMNS = new QueryColumn[]{ID, NAME};
public RoleTableDef() {
super("", "tb_role");
}
private RoleTableDef(String schema, String name, String alisa) {
super(schema, name, alisa);
}
public RoleTableDef as(String alias) {
String key = getNameWithSchema() + "." + alias;
return getCache(key, k -> new RoleTableDef("", "tb_role", alias));
}
}