StdMetaDataT.java 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. package com.yihu.ehr.model.entity.standard;
  2. /**
  3. * 标准元数据
  4. *
  5. * @created Created by Air on 2015/6/3.
  6. */
  7. public class StdMetaDataT {
  8. private int id;
  9. private String name;
  10. private String code;
  11. private int datasetId;
  12. private String deCode;
  13. private String definition;
  14. private String type;
  15. private String format;
  16. private String dictCode;
  17. private String version;
  18. private Integer valid;
  19. private Integer nullable;
  20. private String innerVersion;
  21. private Integer dictValueType;
  22. private String columnName;
  23. private String columnType;
  24. private Integer primaryKey;
  25. public int getId() {
  26. return id;
  27. }
  28. public void setId(int id) {
  29. this.id = id;
  30. }
  31. public String getName() {
  32. return name;
  33. }
  34. public void setName(String name) {
  35. this.name = name;
  36. }
  37. public String getCode() {
  38. return code;
  39. }
  40. public void setCode(String code) {
  41. this.code = code;
  42. }
  43. public int getDatasetId() {
  44. return datasetId;
  45. }
  46. public void setDatasetId(int datasetId) {
  47. this.datasetId = datasetId;
  48. }
  49. public String getDeCode() {
  50. return deCode;
  51. }
  52. public void setDeCode(String innerCode) {
  53. this.deCode = innerCode;
  54. }
  55. public String getDefinition() {
  56. return definition;
  57. }
  58. public void setDefinition(String definition) {
  59. this.definition = definition;
  60. }
  61. public String getType() {
  62. return type;
  63. }
  64. public void setType(String type) {
  65. this.type = type;
  66. }
  67. public String getFormat() {
  68. return format;
  69. }
  70. public void setFormat(String format) {
  71. this.format = format;
  72. }
  73. public String getDictCode() {
  74. return dictCode;
  75. }
  76. public void setDictCode(String dictId) {
  77. this.dictCode = dictId;
  78. }
  79. public String getVersion() {
  80. return version;
  81. }
  82. public void setVersion(String version) {
  83. this.version = version;
  84. }
  85. public Integer getNullable() {
  86. return nullable;
  87. }
  88. public void setNullable(Integer nullable) {
  89. this.nullable = nullable;
  90. }
  91. public Integer getValid() {
  92. return valid;
  93. }
  94. public void setValid(Integer valid) {
  95. this.valid = valid;
  96. }
  97. public String getInnerVersion() {
  98. return innerVersion;
  99. }
  100. public void setInnerVersion(String innerVersion) {
  101. this.innerVersion = innerVersion;
  102. }
  103. public Integer getDictValueType() {
  104. return dictValueType;
  105. }
  106. public void setDictValueType(Integer dictValueType) {
  107. this.dictValueType = dictValueType;
  108. }
  109. public String getColumnName() {
  110. return columnName;
  111. }
  112. public void setColumnName(String column) {
  113. this.columnName = column;
  114. }
  115. public String getColumnType() {
  116. return columnType;
  117. }
  118. public void setColumnType(String columnType) {
  119. this.columnType = columnType;
  120. }
  121. public Integer getPrimaryKey() {
  122. return primaryKey;
  123. }
  124. public void setPrimaryKey(Integer primaryKey) {
  125. this.primaryKey = primaryKey;
  126. }
  127. @Override
  128. public boolean equals(Object o) {
  129. if (this == o) return true;
  130. if (o == null || getClass() != o.getClass()) return false;
  131. StdMetaDataT that = (StdMetaDataT) o;
  132. if (id != that.id) return false;
  133. if (name != null ? !name.equals(that.name) : that.name != null) return false;
  134. if (code != null ? !code.equals(that.code) : that.code != null) return false;
  135. if (deCode != null ? !deCode.equals(that.deCode) : that.deCode != null) return false;
  136. if (definition != null ? !definition.equals(that.definition) : that.definition != null) return false;
  137. if (type != null ? !type.equals(that.type) : that.type != null) return false;
  138. if (format != null ? !format.equals(that.format) : that.format != null) return false;
  139. if (dictCode != null ? !dictCode.equals(that.dictCode) : that.dictCode != null) return false;
  140. if (version != null ? !version.equals(that.version) : that.version != null) return false;
  141. if (valid != null ? !valid.equals(that.valid) : that.valid != null) return false;
  142. if (dictValueType != null ? !dictValueType.equals(that.dictValueType) : that.dictValueType != null)
  143. return false;
  144. if (nullable != null ? !nullable.equals(that.nullable) : that.nullable != null) return false;
  145. if (innerVersion != null ? !innerVersion.equals(that.innerVersion) : that.innerVersion != null) return false;
  146. return true;
  147. }
  148. @Override
  149. public int hashCode() {
  150. int result = id;
  151. result = 31 * result + (name != null ? name.hashCode() : 0);
  152. result = 31 * result + (code != null ? code.hashCode() : 0);
  153. result = 31 * result + (deCode != null ? deCode.hashCode() : 0);
  154. result = 31 * result + (definition != null ? definition.hashCode() : 0);
  155. result = 31 * result + (type != null ? type.hashCode() : 0);
  156. result = 31 * result + (format != null ? format.hashCode() : 0);
  157. result = 31 * result + (dictCode != null ? dictCode.hashCode() : 0);
  158. result = 31 * result + (version != null ? version.hashCode() : 0);
  159. result = 31 * result + (valid != null ? valid.hashCode() : 0);
  160. result = 31 * result + (nullable != null ? nullable.hashCode() : 0);
  161. result = 31 * result + (dictValueType != null ? dictValueType.hashCode() : 0);
  162. result = 31 * result + (innerVersion != null ? innerVersion.hashCode() : 0);
  163. return result;
  164. }
  165. }