StdDictItemT.java 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. package com.yihu.ehr.model.entity.standard;
  2. /**
  3. * 标准字典项
  4. *
  5. * @created Created by Air on 2015/6/3.
  6. */
  7. public class StdDictItemT {
  8. private int id;
  9. private String value;
  10. private String code;
  11. private Integer valid;
  12. private String version;
  13. private Integer dictId;
  14. private String innerVersion;
  15. public int getId() {
  16. return id;
  17. }
  18. public void setId(int id) {
  19. this.id = id;
  20. }
  21. public String getValue() {
  22. return value;
  23. }
  24. public void setValue(String value) {
  25. this.value = value;
  26. }
  27. public String getCode() {
  28. return code;
  29. }
  30. public void setCode(String code) {
  31. this.code = code;
  32. }
  33. public Integer getValid() {
  34. return valid;
  35. }
  36. public void setValid(Integer valid) {
  37. this.valid = valid;
  38. }
  39. public String getVersion() {
  40. return version;
  41. }
  42. public void setVersion(String version) {
  43. this.version = version;
  44. }
  45. public String getInnerVersion() {
  46. return innerVersion;
  47. }
  48. public void setInnerVersion(String innerVersion) {
  49. this.innerVersion = innerVersion;
  50. }
  51. public Integer getDictId() {
  52. return dictId;
  53. }
  54. public void setDictId(Integer dictId) {
  55. this.dictId = dictId;
  56. }
  57. @Override
  58. public boolean equals(Object o) {
  59. if (this == o) return true;
  60. if (o == null || getClass() != o.getClass()) return false;
  61. StdDictItemT that = (StdDictItemT) o;
  62. if (id != that.id) return false;
  63. if (value != null ? !value.equals(that.value) : that.value != null) return false;
  64. if (code != null ? !code.equals(that.code) : that.code != null) return false;
  65. if (valid != null ? !valid.equals(that.valid) : that.valid != null) return false;
  66. if (version != null ? !version.equals(that.version) : that.version != null) return false;
  67. if (innerVersion != null ? !innerVersion.equals(that.innerVersion) : that.innerVersion != null) return false;
  68. return true;
  69. }
  70. @Override
  71. public int hashCode() {
  72. int result = id;
  73. result = 31 * result + (value != null ? value.hashCode() : 0);
  74. result = 31 * result + (code != null ? code.hashCode() : 0);
  75. result = 31 * result + (valid != null ? valid.hashCode() : 0);
  76. result = 31 * result + (version != null ? version.hashCode() : 0);
  77. result = 31 * result + (innerVersion != null ? innerVersion.hashCode() : 0);
  78. return result;
  79. }
  80. }