com.mybatisflex.test.model.table.PatientTableDef 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 PatientTableDef extends TableDef {
/**
* 患者信息
@author Ice 2023/09/26
@version 1.0
*/
public static final PatientTableDef PATIENT = new PatientTableDef();
/**
* 姓名
*/
public final QueryColumn NAME = new QueryColumn(this, "name");
/**
* 患者标签(对应数字类型) / 分割
*/
public final QueryColumn TAG_IDS = new QueryColumn(this, "tag_ids");
/**
* ID
*/
public final QueryColumn PATIENT_ID = new QueryColumn(this, "patient_id");
/**
* 所患病症(对应字符串类型) 英文逗号 分割
*/
public final QueryColumn DISEASE_IDS = new QueryColumn(this, "disease_ids");
/**
* 所有字段。
*/
public final QueryColumn ALL_COLUMNS = new QueryColumn(this, "*");
/**
* 默认字段,不包含逻辑删除或者 large 等字段。
*/
public final QueryColumn[] DEFAULT_COLUMNS = new QueryColumn[]{NAME, TAG_IDS, PATIENT_ID, DISEASE_IDS};
public PatientTableDef() {
super("", "tb_patient");
}
private PatientTableDef(String schema, String name, String alisa) {
super(schema, name, alisa);
}
public PatientTableDef as(String alias) {
String key = getNameWithSchema() + "." + alias;
return getCache(key, k -> new PatientTableDef("", "tb_patient", alias));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy