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

com.mybatisflex.test.table.Account1TableDef Maven / Gradle / Ivy

The newest version!
package com.mybatisflex.test.table;

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

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

    public static final Account1TableDef ACCOUNT1 = new Account1TableDef();

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

    public final QueryColumn AGE = new QueryColumn(this, "age");

    public final QueryColumn SEX = new QueryColumn(this, "sex");

    public final QueryColumn AGE_VV = new QueryColumn(this, "age_vv");

    public final QueryColumn OPTIONS = new QueryColumn(this, "options");

    public final QueryColumn BIRTHDAY = new QueryColumn(this, "birthday");

    public final QueryColumn IS_DELETE = new QueryColumn(this, "is_delete");

    public final QueryColumn USER_NAME = new QueryColumn(this, "user_name");

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

    /**
     * 默认字段,不包含逻辑删除或者 large 等字段。
     */
    public final QueryColumn[] DEFAULT_COLUMNS = new QueryColumn[]{ID, AGE, SEX, AGE_VV, OPTIONS, BIRTHDAY, IS_DELETE, USER_NAME};

    public Account1TableDef() {
        super("", "tb_account_1");
    }

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy