You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
test/src/main/java/com/entity/DictionaryEntity.java

250 lines
4.2 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

package com.entity;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.lang.reflect.InvocationTargetException;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.beanutils.BeanUtils;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.enums.IdType;
/**
* 字典表
*
* @author
* @email
*/
@TableName("dictionary")
public class DictionaryEntity<T> implements Serializable {
private static final long serialVersionUID = 1L;
public DictionaryEntity() {
}
public DictionaryEntity(T t) {
try {
BeanUtils.copyProperties(this, t);
} catch (IllegalAccessException | InvocationTargetException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
/**
* 主键
*/
@TableId(type = IdType.AUTO)
@TableField(value = "id")
private Integer id;
/**
* 字段
*/
@TableField(value = "dic_code")
private String dicCode;
/**
* 字段名
*/
@TableField(value = "dic_name")
private String dicName;
/**
* 编码
*/
@TableField(value = "code_index")
private Integer codeIndex;
/**
* 编码名字
*/
@TableField(value = "index_name")
private String indexName;
/**
* 父字段id
*/
@TableField(value = "super_id")
private Integer superId;
/**
* 备注
*/
@TableField(value = "beizhu")
private String beizhu;
/**
* 创建时间
*/
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
@DateTimeFormat
@TableField(value = "create_time",fill = FieldFill.INSERT)
private Date createTime;
/**
* 设置:主键
*/
public Integer getId() {
return id;
}
/**
* 获取:主键
*/
public void setId(Integer id) {
this.id = id;
}
/**
* 设置:字段
*/
public String getDicCode() {
return dicCode;
}
/**
* 获取:字段
*/
public void setDicCode(String dicCode) {
this.dicCode = dicCode;
}
/**
* 设置:字段名
*/
public String getDicName() {
return dicName;
}
/**
* 获取:字段名
*/
public void setDicName(String dicName) {
this.dicName = dicName;
}
/**
* 设置:编码
*/
public Integer getCodeIndex() {
return codeIndex;
}
/**
* 获取:编码
*/
public void setCodeIndex(Integer codeIndex) {
this.codeIndex = codeIndex;
}
/**
* 设置:编码名字
*/
public String getIndexName() {
return indexName;
}
/**
* 获取:编码名字
*/
public void setIndexName(String indexName) {
this.indexName = indexName;
}
/**
* 设置父字段id
*/
public Integer getSuperId() {
return superId;
}
/**
* 获取父字段id
*/
public void setSuperId(Integer superId) {
this.superId = superId;
}
/**
* 设置:备注
*/
public String getBeizhu() {
return beizhu;
}
/**
* 获取:备注
*/
public void setBeizhu(String beizhu) {
this.beizhu = beizhu;
}
/**
* 设置:创建时间
*/
public Date getCreateTime() {
return createTime;
}
/**
* 获取:创建时间
*/
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
@Override
public String toString() {
return "Dictionary{" +
"id=" + id +
", dicCode=" + dicCode +
", dicName=" + dicName +
", codeIndex=" + codeIndex +
", indexName=" + indexName +
", superId=" + superId +
", beizhu=" + beizhu +
", createTime=" + createTime +
"}";
}
}