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

com.mybatisflex.test.model.table.TbClassTableDef Maven / Gradle / Ivy

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 TbClassTableDef extends TableDef {

    public static final TbClassTableDef TB_CLASS = new TbClassTableDef();

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

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

    public final QueryColumn CLASS_NAME = new QueryColumn(this, "class_name");

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

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

    public TbClassTableDef() {
        super("", "tb_class");
    }

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy