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

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

    /**
     * @author 王帅
 @since 2023-07-12
     */
    public static final IdCardTableDef ID_CARD = new IdCardTableDef();

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

    public final QueryColumn ID_NUMBER = new QueryColumn(this, "id_number");

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

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

    public IdCardTableDef() {
        super("", "tb_id_card");
    }

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

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy