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

com.github.rexsheng.springboot.faster.system.entity.table.UserPostTableDef 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 UserPostTableDef extends TableDef {

    /**
     * 用户岗位表 实体类。

 @author shengxp
 @since 2024-04-07
     */
    public static final UserPostTableDef USER_POST = new UserPostTableDef();

    /**
     * 岗位ID
     */
    public final QueryColumn POST_ID = new QueryColumn(this, "post_id");

    /**
     * 用户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[]{POST_ID, USER_ID};

    public UserPostTableDef() {
        super("", "sys_user_post");
    }

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy