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

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

There is a newer version: 1.10.3
Show 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 UserTableDef extends TableDef {

    /**
     * 用户。

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

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

    public final QueryColumn PASSWORD = new QueryColumn(this, "password");

    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[]{USER_ID, PASSWORD, USER_NAME};

    public UserTableDef() {
        super("", "tb_user");
    }

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

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy