Feature.java 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. package com.diagbot.client.bean;
  2. import java.io.Serializable;
  3. /**
  4. * @Title: Feature.java
  5. * @Package: com.zjlantone.nlp.web.doc.dao.model
  6. * @Description: 数据库操作接口类
  7. * @author: 楼辉荣
  8. * @date: 2016年8月8日 下午17:16:23
  9. * @version: V1.0
  10. */
  11. @SuppressWarnings("serial")
  12. public class Feature implements Serializable {
  13. /****/
  14. private Long id;
  15. /****/
  16. private String rdn = "";
  17. /****/
  18. private String sex;
  19. /****/
  20. private int age;
  21. private String partbody = "";
  22. /****/
  23. private String featureName = "";
  24. /****/
  25. private String featureType = "";
  26. //是否推送
  27. private String isPush = "0";
  28. /**
  29. * 特征顺序号
  30. **/
  31. private int sn;
  32. /****/
  33. private String negative = "";
  34. private float duration;
  35. private String property;
  36. /****/
  37. private Float threshold;
  38. /****/
  39. private String tfIdf;
  40. /**
  41. * 区分住院门诊
  42. **/
  43. private String resourceType;
  44. public void setId(Long id) {
  45. this.id = id;
  46. }
  47. public Long getId() {
  48. return this.id;
  49. }
  50. public void setRdn(String rdn) {
  51. this.rdn = rdn;
  52. }
  53. public String getRdn() {
  54. return this.rdn;
  55. }
  56. public void setSex(String sex) {
  57. this.sex = sex;
  58. }
  59. public String getSex() {
  60. return this.sex;
  61. }
  62. public void setAge(int age) {
  63. this.age = age;
  64. }
  65. public int getAge() {
  66. return this.age;
  67. }
  68. public void setFeatureName(String featureName) {
  69. this.featureName = featureName;
  70. }
  71. public String getFeatureName() {
  72. return this.featureName;
  73. }
  74. public void setFeatureType(String featureType) {
  75. this.featureType = featureType;
  76. }
  77. public String getFeatureType() {
  78. return this.featureType;
  79. }
  80. public String getIsPush() {
  81. return isPush;
  82. }
  83. public void setIsPush(String isPush) {
  84. this.isPush = isPush;
  85. }
  86. public int getSn() {
  87. return sn;
  88. }
  89. public void setSn(int sn) {
  90. this.sn = sn;
  91. }
  92. public void setNegative(String negative) {
  93. this.negative = negative;
  94. }
  95. public String getNegative() {
  96. return this.negative;
  97. }
  98. public String getPartbody() {
  99. return partbody;
  100. }
  101. public void setPartbody(String partbody) {
  102. this.partbody = partbody;
  103. }
  104. public float getDuration() {
  105. return duration;
  106. }
  107. public void setDuration(float duration) {
  108. this.duration = duration;
  109. }
  110. public String getProperty() {
  111. return property;
  112. }
  113. public void setProperty(String property) {
  114. this.property = property;
  115. }
  116. public void setThreshold(Float threshold) {
  117. this.threshold = threshold;
  118. }
  119. public Float getThreshold() {
  120. return this.threshold;
  121. }
  122. public void setTfIdf(String tfIdf) {
  123. this.tfIdf = tfIdf;
  124. }
  125. public String getTfIdf() {
  126. return this.tfIdf;
  127. }
  128. public String getResourceType() {
  129. return resourceType;
  130. }
  131. public void setResourceType(String resourceType) {
  132. this.resourceType = resourceType;
  133. }
  134. @Override
  135. public boolean equals(Object o) {
  136. if (this == o) {
  137. return true;
  138. }
  139. if (o == null || getClass() != o.getClass()) {
  140. return false;
  141. }
  142. Feature feature = (Feature) o;
  143. if (id != feature.id) {
  144. return false;
  145. }
  146. return rdn.equals(feature.rdn) && partbody.equals(feature.partbody) && featureName.equals(feature.featureName)
  147. && featureType.equals(feature.featureType) && negative.equals(feature.negative);
  148. }
  149. @Override
  150. public int hashCode() {
  151. int result = id.hashCode();
  152. result = 31 * result + rdn.hashCode() + partbody.hashCode() + featureName.hashCode() + featureType.hashCode() + negative.hashCode();
  153. return result;
  154. }
  155. }