com.mybatisflex.test.model.table.RoleTableDef Maven / Gradle / Ivy
The newest version!
package com.mybatisflex.test.model.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 {
/**
* 角色。
@author 王帅
@since 2023-06-07
*/
public static final RoleTableDef ROLE = new RoleTableDef();
public final QueryColumn ROLE_ID = new QueryColumn(this, "role_id");
public final QueryColumn ROLE_KEY = new QueryColumn(this, "role_key");
public final QueryColumn ROLE_NAME = new QueryColumn(this, "role_name");
/**
* 所有字段。
*/
public final QueryColumn ALL_COLUMNS = new QueryColumn(this, "*");
/**
* 默认字段,不包含逻辑删除或者 large 等字段。
*/
public final QueryColumn[] DEFAULT_COLUMNS = new QueryColumn[]{ROLE_ID, ROLE_KEY, ROLE_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));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy