com.mybatisflex.test.alias.table.SysUserTableDef Maven / Gradle / Ivy
The newest version!
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 SysUserTableDef extends TableDef {
/**
* 用户。
@author 王帅
@since 2023-11-16
*/
public static final SysUserTableDef SYS_USER = new SysUserTableDef();
public final QueryColumn ID = new QueryColumn(this, "id");
public final QueryColumn AGE = new QueryColumn(this, "age", "user_age");
public final QueryColumn BIRTHDAY = new QueryColumn(this, "birthday");
public final QueryColumn CREATE_BY = new QueryColumn(this, "create_by");
public final QueryColumn UPDATE_BY = new QueryColumn(this, "update_by");
public final QueryColumn USER_NAME = new QueryColumn(this, "user_name");
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, AGE, BIRTHDAY, CREATE_BY, UPDATE_BY, USER_NAME, CREATE_TIME, UPDATE_TIME};
public SysUserTableDef() {
super("", "sys_user");
}
private SysUserTableDef(String schema, String name, String alisa) {
super(schema, name, alisa);
}
public SysUserTableDef as(String alias) {
String key = getNameWithSchema() + "." + alias;
return getCache(key, k -> new SysUserTableDef("", "sys_user", alias));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy