package com.highdatas.mdm.entity;
|
|
import com.baomidou.mybatisplus.activerecord.Model;
|
import com.baomidou.mybatisplus.annotations.TableField;
|
import com.baomidou.mybatisplus.annotations.TableName;
|
import com.baomidou.mybatisplus.enums.FieldStrategy;
|
import com.highdatas.mdm.pojo.MasterAuthorType;
|
|
import java.io.Serializable;
|
import java.util.Date;
|
import java.util.List;
|
|
/**
|
* <p>
|
*
|
* </p>
|
*
|
* @author kimi
|
* @since 2020-03-23
|
*/
|
@TableName("master_author")
|
public class MasterAuthor extends Model<MasterAuthor> {
|
|
private static final long serialVersionUID = 1L;
|
|
private String id;
|
|
private MasterAuthorType type;
|
|
@TableField("table_name")
|
private String tableName;
|
|
@TableField("field_auto")
|
private Boolean fieldAuto;
|
|
@TableField("character_id")
|
private String characterId;
|
|
@TableField("menu_id")
|
private String menuId;
|
|
@TableField(value = "maintain_field_id", strategy = FieldStrategy.IGNORED)
|
private String maintainFieldId;
|
|
|
private Boolean active;
|
|
@TableField("create_time")
|
private Date createTime;
|
|
@TableField("update_time")
|
private Date updateTime;
|
|
private transient List<MasterAuthorDetail> fields;
|
|
public String getMenuId() {
|
return menuId;
|
}
|
|
public MasterAuthor setMenuId(String menuId) {
|
this.menuId = menuId;
|
return this;
|
}
|
|
public Boolean getFieldAuto() {
|
return fieldAuto;
|
}
|
|
public MasterAuthor setFieldAuto(Boolean fieldAuto) {
|
this.fieldAuto = fieldAuto;
|
return this;
|
}
|
|
public List<MasterAuthorDetail> getFields() {
|
return fields;
|
}
|
|
public MasterAuthor setFields(List<MasterAuthorDetail> fields) {
|
this.fields = fields;
|
return this;
|
}
|
|
public String getMaintainFieldId() {
|
return maintainFieldId;
|
}
|
|
public MasterAuthor setMaintainFieldId(String maintainFieldId) {
|
this.maintainFieldId = maintainFieldId;
|
return this;
|
}
|
|
public String getCharacterId() {
|
return characterId;
|
}
|
|
public MasterAuthor setCharacterId(String characterId) {
|
this.characterId = characterId;
|
return this;
|
}
|
|
public String getId() {
|
return id;
|
}
|
|
public MasterAuthor setId(String id) {
|
this.id = id;
|
return this;
|
}
|
public MasterAuthorType getType() {
|
return type;
|
}
|
|
public MasterAuthor setType(MasterAuthorType type) {
|
this.type = type;
|
return this;
|
}
|
public String getTableName() {
|
return tableName;
|
}
|
|
public MasterAuthor setTableName(String tableName) {
|
this.tableName = tableName;
|
return this;
|
}
|
public Boolean getActive() {
|
return active;
|
}
|
|
public MasterAuthor setActive(Boolean active) {
|
this.active = active;
|
return this;
|
}
|
public Date getCreateTime() {
|
return createTime;
|
}
|
|
public MasterAuthor setCreateTime(Date createTime) {
|
this.createTime = createTime;
|
return this;
|
}
|
public Date getUpdateTime() {
|
return updateTime;
|
}
|
|
public MasterAuthor setUpdateTime(Date updateTime) {
|
this.updateTime = updateTime;
|
return this;
|
}
|
|
@Override
|
protected Serializable pkVal() {
|
return this.id;
|
}
|
|
@Override
|
public String toString() {
|
return "MasterAuthor{" +
|
"id=" + id +
|
", type=" + type +
|
", tableName=" + tableName +
|
", active=" + active +
|
", createTime=" + createTime +
|
", updateTime=" + updateTime +
|
"}";
|
}
|
}
|