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

com.github.rexsheng.springboot.faster.system.entity.table.RoleMenuTableDef Maven / Gradle / Ivy

The newest version!
package com.github.rexsheng.springboot.faster.system.entity.table;

import com.mybatisflex.core.query.QueryColumn;
import com.mybatisflex.core.table.TableDef;

// Auto generate by mybatis-flex, do not modify it.
public class RoleMenuTableDef extends TableDef {

    /**
     * 角色菜单表 实体类。

 @author sheng
 @since 2024-04-06
     */
    public static final RoleMenuTableDef ROLE_MENU = new RoleMenuTableDef();

    /**
     * 菜单ID
     */
    public final QueryColumn MENU_ID = new QueryColumn(this, "menu_id");

    /**
     * 角色ID
     */
    public final QueryColumn ROLE_ID = new QueryColumn(this, "role_id");

    /**
     * 所有字段。
     */
    public final QueryColumn ALL_COLUMNS = new QueryColumn(this, "*");

    /**
     * 默认字段,不包含逻辑删除或者 large 等字段。
     */
    public final QueryColumn[] DEFAULT_COLUMNS = new QueryColumn[]{MENU_ID, ROLE_ID};

    public RoleMenuTableDef() {
        super("", "sys_role_menu");
    }

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy