| | |
| | | import java.time.LocalDateTime; |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | import java.util.Objects; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | |
| | | */ |
| | | private String isDelete; |
| | | |
| | | @Override |
| | | public boolean equals(Object o) { |
| | | if (this == o) return true; |
| | | if (o == null || getClass() != o.getClass()) return false; |
| | | VersionSensorUnit that = (VersionSensorUnit) o; |
| | | return Objects.equals(sensorCode, that.sensorCode) && |
| | | Objects.equals(unitKey, that.unitKey) && |
| | | Objects.equals(upper, that.upper) && |
| | | Objects.equals(lower, that.lower); |
| | | } |
| | | |
| | | @Override |
| | | public int hashCode() { |
| | | |
| | | return Objects.hash(super.hashCode(), sensorCode, unitKey, upper, lower); |
| | | } |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |