YtiotTEfAnalysis.java 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. package cn.com.usky.iot.entity;
  2. import javax.persistence.*;
  3. import java.sql.Date;
  4. import java.sql.Timestamp;
  5. import java.util.Objects;
  6. @Entity
  7. @Table(name = "ytiot_t_ef_analysis", schema = "ytIoT", catalog = "")
  8. public class YtiotTEfAnalysis {
  9. private int id;
  10. private String companyCode;
  11. private String dataStatistics;
  12. private String dispersionRate;
  13. private String electricalAging;
  14. private String thermalAging;
  15. private String projectSituation;
  16. private String equipmentList;
  17. private String statisticalPeriod;
  18. private Timestamp creatTime;
  19. private String generationTime;
  20. @Basic
  21. @Column(name = "id")
  22. public int getId() {
  23. return id;
  24. }
  25. public void setId(int id) {
  26. this.id = id;
  27. }
  28. @Basic
  29. @Column(name = "company_code")
  30. public String getCompanyCode() {
  31. return companyCode;
  32. }
  33. public void setCompanyCode(String companyCode) {
  34. this.companyCode = companyCode;
  35. }
  36. @Basic
  37. @Column(name = "data_statistics")
  38. public String getDataStatistics() {
  39. return dataStatistics;
  40. }
  41. public void setDataStatistics(String dataStatistics) {
  42. this.dataStatistics = dataStatistics;
  43. }
  44. @Basic
  45. @Column(name = "dispersion_rate")
  46. public String getDispersionRate() {
  47. return dispersionRate;
  48. }
  49. public void setDispersionRate(String dispersionRate) {
  50. this.dispersionRate = dispersionRate;
  51. }
  52. @Basic
  53. @Column(name = "electrical_aging")
  54. public String getElectricalAging() {
  55. return electricalAging;
  56. }
  57. public void setElectricalAging(String electricalAging) {
  58. this.electricalAging = electricalAging;
  59. }
  60. @Basic
  61. @Column(name = "thermal_aging")
  62. public String getThermalAging() {
  63. return thermalAging;
  64. }
  65. public void setThermalAging(String thermalAging) {
  66. this.thermalAging = thermalAging;
  67. }
  68. @Basic
  69. @Column(name = "project_situation")
  70. public String getProjectSituation() {
  71. return projectSituation;
  72. }
  73. public void setProjectSituation(String projectSituation) {
  74. this.projectSituation = projectSituation;
  75. }
  76. @Basic
  77. @Column(name = "equipment_list")
  78. public String getEquipmentList() {
  79. return equipmentList;
  80. }
  81. public void setEquipmentList(String equipmentList) {
  82. this.equipmentList = equipmentList;
  83. }
  84. @Basic
  85. @Column(name = "statistical_period")
  86. public String getStatisticalPeriod() {
  87. return statisticalPeriod;
  88. }
  89. public void setStatisticalPeriod(String statisticalPeriod) {
  90. this.statisticalPeriod = statisticalPeriod;
  91. }
  92. @Basic
  93. @Column(name = "creat_time")
  94. public Timestamp getCreatTime() {
  95. return creatTime;
  96. }
  97. public void setCreatTime(Timestamp creatTime) {
  98. this.creatTime = creatTime;
  99. }
  100. @Basic
  101. @Column(name = "generation_time")
  102. public String getGenerationTime() {
  103. return generationTime;
  104. }
  105. public void setGenerationTime(String generationTime) {
  106. this.generationTime = generationTime;
  107. }
  108. @Override
  109. public boolean equals(Object o) {
  110. if (this == o) return true;
  111. if (o == null || getClass() != o.getClass()) return false;
  112. YtiotTEfAnalysis that = (YtiotTEfAnalysis) o;
  113. if (id != that.id) return false;
  114. if (companyCode != null ? !companyCode.equals(that.companyCode) : that.companyCode != null) return false;
  115. if (dataStatistics != null ? !dataStatistics.equals(that.dataStatistics) : that.dataStatistics != null)
  116. return false;
  117. if (dispersionRate != null ? !dispersionRate.equals(that.dispersionRate) : that.dispersionRate != null)
  118. return false;
  119. if (electricalAging != null ? !electricalAging.equals(that.electricalAging) : that.electricalAging != null)
  120. return false;
  121. if (thermalAging != null ? !thermalAging.equals(that.thermalAging) : that.thermalAging != null) return false;
  122. if (projectSituation != null ? !projectSituation.equals(that.projectSituation) : that.projectSituation != null)
  123. return false;
  124. if (equipmentList != null ? !equipmentList.equals(that.equipmentList) : that.equipmentList != null)
  125. return false;
  126. if (statisticalPeriod != null ? !statisticalPeriod.equals(that.statisticalPeriod) : that.statisticalPeriod != null)
  127. return false;
  128. if (creatTime != null ? !creatTime.equals(that.creatTime) : that.creatTime != null) return false;
  129. if (generationTime != null ? !generationTime.equals(that.generationTime) : that.generationTime != null) return false;
  130. return true;
  131. }
  132. @Override
  133. public int hashCode() {
  134. int result = id;
  135. result = 31 * result + (companyCode != null ? companyCode.hashCode() : 0);
  136. result = 31 * result + (dataStatistics != null ? dataStatistics.hashCode() : 0);
  137. result = 31 * result + (dispersionRate != null ? dispersionRate.hashCode() : 0);
  138. result = 31 * result + (electricalAging != null ? electricalAging.hashCode() : 0);
  139. result = 31 * result + (thermalAging != null ? thermalAging.hashCode() : 0);
  140. result = 31 * result + (projectSituation != null ? projectSituation.hashCode() : 0);
  141. result = 31 * result + (equipmentList != null ? equipmentList.hashCode() : 0);
  142. result = 31 * result + (statisticalPeriod != null ? statisticalPeriod.hashCode() : 0);
  143. result = 31 * result + (creatTime != null ? creatTime.hashCode() : 0);
  144. result = 31 * result + (generationTime != null ? generationTime.hashCode() : 0);
  145. return result;
  146. }
  147. }