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

com.mybatisflex.test.model.table.UserRoleTableDef 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 UserRoleTableDef extends TableDef {

    /**
     * 用户与角色连接表。

 @author 王帅
 @since 2023-06-07
     */
    public static final UserRoleTableDef USER_ROLE = new UserRoleTableDef();

    public final QueryColumn ROLE_ID = new QueryColumn(this, "role_id");

    public final QueryColumn USER_ID = new QueryColumn(this, "user_id");

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

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

    public UserRoleTableDef() {
        super("", "tb_user_role");
    }

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

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy