package com.yihu.ehr.model.entity.standard; /** * 标准元数据 * * @created Created by Air on 2015/6/3. */ public class StdMetaDataT { private int id; private String name; private String code; private int datasetId; private String deCode; private String definition; private String type; private String format; private String dictCode; private String version; private Integer valid; private Integer nullable; private String innerVersion; private Integer dictValueType; private String columnName; private String columnType; private Integer primaryKey; public int getId() { return id; } public void setId(int id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getCode() { return code; } public void setCode(String code) { this.code = code; } public int getDatasetId() { return datasetId; } public void setDatasetId(int datasetId) { this.datasetId = datasetId; } public String getDeCode() { return deCode; } public void setDeCode(String innerCode) { this.deCode = innerCode; } public String getDefinition() { return definition; } public void setDefinition(String definition) { this.definition = definition; } public String getType() { return type; } public void setType(String type) { this.type = type; } public String getFormat() { return format; } public void setFormat(String format) { this.format = format; } public String getDictCode() { return dictCode; } public void setDictCode(String dictId) { this.dictCode = dictId; } public String getVersion() { return version; } public void setVersion(String version) { this.version = version; } public Integer getNullable() { return nullable; } public void setNullable(Integer nullable) { this.nullable = nullable; } public Integer getValid() { return valid; } public void setValid(Integer valid) { this.valid = valid; } public String getInnerVersion() { return innerVersion; } public void setInnerVersion(String innerVersion) { this.innerVersion = innerVersion; } public Integer getDictValueType() { return dictValueType; } public void setDictValueType(Integer dictValueType) { this.dictValueType = dictValueType; } public String getColumnName() { return columnName; } public void setColumnName(String column) { this.columnName = column; } public String getColumnType() { return columnType; } public void setColumnType(String columnType) { this.columnType = columnType; } public Integer getPrimaryKey() { return primaryKey; } public void setPrimaryKey(Integer primaryKey) { this.primaryKey = primaryKey; } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; StdMetaDataT that = (StdMetaDataT) o; if (id != that.id) return false; if (name != null ? !name.equals(that.name) : that.name != null) return false; if (code != null ? !code.equals(that.code) : that.code != null) return false; if (deCode != null ? !deCode.equals(that.deCode) : that.deCode != null) return false; if (definition != null ? !definition.equals(that.definition) : that.definition != null) return false; if (type != null ? !type.equals(that.type) : that.type != null) return false; if (format != null ? !format.equals(that.format) : that.format != null) return false; if (dictCode != null ? !dictCode.equals(that.dictCode) : that.dictCode != null) return false; if (version != null ? !version.equals(that.version) : that.version != null) return false; if (valid != null ? !valid.equals(that.valid) : that.valid != null) return false; if (dictValueType != null ? !dictValueType.equals(that.dictValueType) : that.dictValueType != null) return false; if (nullable != null ? !nullable.equals(that.nullable) : that.nullable != null) return false; if (innerVersion != null ? !innerVersion.equals(that.innerVersion) : that.innerVersion != null) return false; return true; } @Override public int hashCode() { int result = id; result = 31 * result + (name != null ? name.hashCode() : 0); result = 31 * result + (code != null ? code.hashCode() : 0); result = 31 * result + (deCode != null ? deCode.hashCode() : 0); result = 31 * result + (definition != null ? definition.hashCode() : 0); result = 31 * result + (type != null ? type.hashCode() : 0); result = 31 * result + (format != null ? format.hashCode() : 0); result = 31 * result + (dictCode != null ? dictCode.hashCode() : 0); result = 31 * result + (version != null ? version.hashCode() : 0); result = 31 * result + (valid != null ? valid.hashCode() : 0); result = 31 * result + (nullable != null ? nullable.hashCode() : 0); result = 31 * result + (dictValueType != null ? dictValueType.hashCode() : 0); result = 31 * result + (innerVersion != null ? innerVersion.hashCode() : 0); return result; } }