com.mybatisflex.test.entity.table.OuterTableDef Maven / Gradle / Ivy
The newest version!
package com.mybatisflex.test.entity.table;
import com.mybatisflex.core.query.QueryColumn;
import com.mybatisflex.core.table.TableDef;
// Auto generate by mybatis-flex, do not modify it.
public class OuterTableDef extends TableDef {
/**
* @author 王帅
@since 2023-06-16
*/
public static final OuterTableDef OUTER = new OuterTableDef();
/**
* 主键。
*/
public final QueryColumn ID = new QueryColumn(this, "id", "outer_id");
public final QueryColumn NAME = new QueryColumn(this, "name");
/**
* 所有字段。
*/
public final QueryColumn ALL_COLUMNS = new QueryColumn(this, "*");
/**
* 默认字段,不包含逻辑删除或者 large 等字段。
*/
public final QueryColumn[] DEFAULT_COLUMNS = new QueryColumn[]{ID, NAME};
public OuterTableDef() {
super("", "tb_outer");
}
private OuterTableDef(String schema, String name, String alisa) {
super(schema, name, alisa);
}
public OuterTableDef as(String alias) {
String key = getNameWithSchema() + "." + alias;
return getCache(key, k -> new OuterTableDef("", "tb_outer", alias));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy