You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

TBEnvironmentUpdate.java 3.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. package vn.azteam.tpf.domain;
  2. import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
  3. import org.hibernate.annotations.Cache;
  4. import org.hibernate.annotations.CacheConcurrencyStrategy;
  5. import javax.persistence.*;
  6. import org.springframework.data.elasticsearch.annotations.Document;
  7. import java.io.Serializable;
  8. import java.util.Objects;
  9. /**
  10. * A TBEnvironmentUpdate.
  11. */
  12. @Entity
  13. @Table(name = "tb_environment_update")
  14. @Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
  15. @Document(indexName = "smf_tbenvironmentupdate")
  16. public class TBEnvironmentUpdate implements Serializable {
  17. private static final long serialVersionUID = 1L;
  18. @Id
  19. @GeneratedValue(strategy = GenerationType.IDENTITY)
  20. private Long id;
  21. @Column(name = "jhi_index")
  22. private Double index;
  23. @Column(name = "times")
  24. private Integer times;
  25. @ManyToOne
  26. @JsonIgnoreProperties("")
  27. private TBEnvironmentalParameter tbEnvironmentalParameter;
  28. @ManyToOne
  29. @JsonIgnoreProperties("")
  30. private TBActivity tbActivity;
  31. @ManyToOne
  32. @JsonIgnoreProperties("")
  33. private TBEquipmentOfCustomer tbEquipmentOfCustomer;
  34. // jhipster-needle-entity-add-field - JHipster will add fields here, do not remove
  35. public Long getId() {
  36. return id;
  37. }
  38. public void setId(Long id) {
  39. this.id = id;
  40. }
  41. public Double getIndex() {
  42. return index;
  43. }
  44. public TBEnvironmentUpdate index(Double index) {
  45. this.index = index;
  46. return this;
  47. }
  48. public void setIndex(Double index) {
  49. this.index = index;
  50. }
  51. public Integer getTimes() {
  52. return times;
  53. }
  54. public TBEnvironmentUpdate times(Integer times) {
  55. this.times = times;
  56. return this;
  57. }
  58. public void setTimes(Integer times) {
  59. this.times = times;
  60. }
  61. public TBEnvironmentalParameter getTbEnvironmentalParameter() {
  62. return tbEnvironmentalParameter;
  63. }
  64. public void setTbEnvironmentalParameter(TBEnvironmentalParameter tbEnvironmentalParameter) {
  65. this.tbEnvironmentalParameter = tbEnvironmentalParameter;
  66. }
  67. public TBEnvironmentUpdate tbEnvironmentalParameter(TBEnvironmentalParameter tbEnvironmentalParameter) {
  68. this.tbEnvironmentalParameter = tbEnvironmentalParameter;
  69. return this;
  70. }
  71. public TBActivity getTbActivity() {
  72. return tbActivity;
  73. }
  74. public TBEnvironmentUpdate tbActivity(TBActivity tBActivity) {
  75. this.tbActivity = tBActivity;
  76. return this;
  77. }
  78. public void setTbActivity(TBActivity tBActivity) {
  79. this.tbActivity = tBActivity;
  80. }
  81. public TBEquipmentOfCustomer getTbEquipmentOfCustomer() {
  82. return tbEquipmentOfCustomer;
  83. }
  84. public TBEnvironmentUpdate tbActivity(TBEquipmentOfCustomer tbEquipmentOfCustomer) {
  85. this.tbEquipmentOfCustomer = tbEquipmentOfCustomer;
  86. return this;
  87. }
  88. public void setTbEquipmentOfCustomer(TBEquipmentOfCustomer tBEquipmentOfCustomer) {
  89. this.tbEquipmentOfCustomer = tBEquipmentOfCustomer;
  90. }
  91. // jhipster-needle-entity-add-getters-setters - JHipster will add getters and setters here, do not remove
  92. @Override
  93. public boolean equals(Object o) {
  94. if (this == o) {
  95. return true;
  96. }
  97. if (o == null || getClass() != o.getClass()) {
  98. return false;
  99. }
  100. TBEnvironmentUpdate tBEnvironmentUpdate = (TBEnvironmentUpdate) o;
  101. if (tBEnvironmentUpdate.getId() == null || getId() == null) {
  102. return false;
  103. }
  104. return Objects.equals(getId(), tBEnvironmentUpdate.getId());
  105. }
  106. @Override
  107. public int hashCode() {
  108. return Objects.hashCode(getId());
  109. }
  110. @Override
  111. public String toString() {
  112. return "TBEnvironmentUpdate{" +
  113. "id=" + getId() +
  114. ", index=" + getIndex() +
  115. ", times=" + getTimes() +
  116. "}";
  117. }
  118. }