package com.glacier.frame.entity.basicdatas;
import java.util.Date;
import javax.validation.constraints.Pattern;
import org.hibernate.validator.constraints.Length;
import com.alibaba.fastjson.annotation.JSONField;
public class ParameterSystemVariables {
private String variablesId;
private String specification;
private String inputTip;
private String parameterValues;
@Pattern(regexp = "^[\u0391-\uFFE5]{1,20}$", message = "{ParameterSystemVariables.variableName.illegal}")
private String variableName;
private String formType;
@Length(max = 255, message = "{ParameterSystemVariables.remark.illegal}")
private String remark;
private String creater;
/**
* 自定义字段,显示创建人真实名字
*/
private String createrDisplay;
@JSONField(format="yyyy-MM-dd HH:mm:ss")
private Date createTime;
private String updater;
/**
* 自定义字段,显示更新人的真实名字
*/
private String updaterDisplay;
@JSONField(format="yyyy-MM-dd HH:mm:ss")
private Date updateTime;
public String getVariablesId() {
return variablesId;
}
public void setVariablesId(String variablesId) {
this.variablesId = variablesId;
}
public String getSpecification() {
return specification;
}
public void setSpecification(String specification) {
this.specification = specification;
}
public String getInputTip() {
return inputTip;
}
public void setInputTip(String inputTip) {
this.inputTip = inputTip;
}
public String getParameterValues() {
return parameterValues;
}
public void setParameterValues(String parameterValues) {
this.parameterValues = parameterValues;
}
public String getVariableName() {
return variableName;
}
public void setVariableName(String variableName) {
this.variableName = variableName;
}
public String getFormType() {
return formType;
}
public void setFormType(String formType) {
this.formType = formType;
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
public String getCreater() {
return creater;
}
public void setCreater(String creater) {
this.creater = creater;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public String getUpdater() {
return updater;
}
public void setUpdater(String updater) {
this.updater = updater;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
public String getCreaterDisplay() {
return createrDisplay;
}
public void setCreaterDisplay(String createrDisplay) {
this.createrDisplay = createrDisplay;
}
public String getUpdaterDisplay() {
return updaterDisplay;
}
public void setUpdaterDisplay(String updaterDisplay) {
this.updaterDisplay = updaterDisplay;
}
@Override
public boolean equals(Object that) {
if (this == that) {
return true;
}
if (that == null) {
return false;
}
if (getClass() != that.getClass()) {
return false;
}
ParameterSystemVariables other = (ParameterSystemVariables) that;
return (this.getVariablesId() == null ? other.getVariablesId() == null : this.getVariablesId().equals(other.getVariablesId()))
&& (this.getSpecification() == null ? other.getSpecification() == null : this.getSpecification().equals(other.getSpecification()))
&& (this.getInputTip() == null ? other.getInputTip() == null : this.getInputTip().equals(other.getInputTip()))
&& (this.getParameterValues() == null ? other.getParameterValues() == null : this.getParameterValues().equals(other.getParameterValues()))
&& (this.getVariableName() == null ? other.getVariableName() == null : this.getVariableName().equals(other.getVariableName()))
&& (this.getFormType() == null ? other.getFormType() == null : this.getFormType().equals(other.getFormType()))
&& (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()))
&& (this.getCreater() == null ? other.getCreater() == null : this.getCreater().equals(other.getCreater()))
&& (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
&& (this.getUpdater() == null ? other.getUpdater() == null : this.getUpdater().equals(other.getUpdater()))
&& (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()));
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((getVariablesId() == null) ? 0 : getVariablesId().hashCode());
result = prime * result + ((getSpecification() == null) ? 0 : getSpecification().hashCode());
result = prime * result + ((getInputTip() == null) ? 0 : getInputTip().hashCode());
result = prime * result + ((getParameterValues() == null) ? 0 : getParameterValues().hashCode());
result = prime * result + ((getVariableName() == null) ? 0 : getVariableName().hashCode());
result = prime * result + ((getFormType() == null) ? 0 : getFormType().hashCode());
result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
result = prime * result + ((getCreater() == null) ? 0 : getCreater().hashCode());
result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
result = prime * result + ((getUpdater() == null) ? 0 : getUpdater().hashCode());
result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
return result;
}
}