com.mybatisflex.test.model.table.ArticleTableDef 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 ArticleTableDef extends TableDef {
public static final ArticleTableDef ARTICLE = new ArticleTableDef();
/**
* 主键。
*/
public final QueryColumn ID = new QueryColumn(this, "id");
public final QueryColumn TITLE = new QueryColumn(this, "title");
public final QueryColumn CONTENT = new QueryColumn(this, "content");
public final QueryColumn IS_DELETE = new QueryColumn(this, "is_delete");
public final QueryColumn ACCOUNT_ID = new QueryColumn(this, "account_id");
/**
* 所有字段。
*/
public final QueryColumn ALL_COLUMNS = new QueryColumn(this, "*");
/**
* 默认字段,不包含逻辑删除或者 large 等字段。
*/
public final QueryColumn[] DEFAULT_COLUMNS = new QueryColumn[]{ID, TITLE, CONTENT, ACCOUNT_ID};
public ArticleTableDef() {
super("", "tb_article");
}
private ArticleTableDef(String schema, String name, String alisa) {
super(schema, name, alisa);
}
public ArticleTableDef as(String alias) {
String key = getNameWithSchema() + "." + alias;
return getCache(key, k -> new ArticleTableDef("", "tb_article", alias));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy