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

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

    /**
     * 商品。

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

    public final QueryColumn NAME = new QueryColumn(this, "name");

    public final QueryColumn PRICE = new QueryColumn(this, "price");

    public final QueryColumn GOOD_ID = new QueryColumn(this, "good_id");

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

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

    public GoodTableDef() {
        super("", "tb_good");
    }

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

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy