com.mybatisflex.test.model.table.UserOrderTableDef 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 UserOrderTableDef extends TableDef {
/**
* 用户订单映射。
@author 王帅
@since 2023-06-07
*/
public static final UserOrderTableDef USER_ORDER = new UserOrderTableDef();
public final QueryColumn USER_ID = new QueryColumn(this, "user_id");
public final QueryColumn ORDER_ID = new QueryColumn(this, "order_id");
/**
* 所有字段。
*/
public final QueryColumn ALL_COLUMNS = new QueryColumn(this, "*");
/**
* 默认字段,不包含逻辑删除或者 large 等字段。
*/
public final QueryColumn[] DEFAULT_COLUMNS = new QueryColumn[]{USER_ID, ORDER_ID};
public UserOrderTableDef() {
super("", "tb_user_order");
}
private UserOrderTableDef(String schema, String name, String alisa) {
super(schema, name, alisa);
}
public UserOrderTableDef as(String alias) {
String key = getNameWithSchema() + "." + alias;
return getCache(key, k -> new UserOrderTableDef("", "tb_user_order", alias));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy