All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.mybatisflex.test.alias.table.SysRoleTableDef Maven / Gradle / Ivy

There is a newer version: 1.10.3
Show 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 SysRoleTableDef extends TableDef {

    /**
     * 角色。

 @author 王帅
 @since 2023-11-16
     */
    public static final SysRoleTableDef SYS_ROLE = new SysRoleTableDef();

    public final QueryColumn ID = new QueryColumn(this, "id");

    public final QueryColumn ROLE_KEY = new QueryColumn(this, "role_key");

    public final QueryColumn CREATE_BY = new QueryColumn(this, "create_by");

    public final QueryColumn ROLE_NAME = new QueryColumn(this, "role_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, ROLE_KEY, CREATE_BY, ROLE_NAME, UPDATE_BY, CREATE_TIME, UPDATE_TIME};

    public SysRoleTableDef() {
        super("", "sys_role");
    }

    private SysRoleTableDef(String schema, String name, String alisa) {
        super(schema, name, alisa);
    }

    public SysRoleTableDef as(String alias) {
        String key = getNameWithSchema() + "." + alias;
        return getCache(key, k -> new SysRoleTableDef("", "sys_role", alias));
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy