package com.cm.tenlion.pollutantdata.pojo; import javax.persistence.*; import java.util.Date; /** * When you feel like quitting. Think about why you started * 当你想要放弃的时候,想想当初你为何开始 * * @ClassName: Offline * @Description: * @Author: WangGeng * @Date: 2021/3/13 13:45 * @Version: 1.0 **/ @Table(name = "cus_point_offline_records") public class Offline { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Integer id; @Column(name = "point_id") private Integer pointId; @Column(name = "enterprise_id") private Integer enterpriseId; @Column(name = "gmt_offline") private Date gmtOffline; @Column(name = "gmt_create") private Date gmtCreate; @Column(name = "gmt_modified") private Date gmtModified; public Integer getId() { return this.id; } public Integer getPointId() { return this.pointId; } public Integer getEnterpriseId() { return this.enterpriseId; } public Date getGmtOffline() { return this.gmtOffline; } public Date getGmtCreate() { return this.gmtCreate; } public Date getGmtModified() { return this.gmtModified; } public void setId(final Integer id) { this.id = id; } public void setPointId(final Integer pointId) { this.pointId = pointId; } public void setEnterpriseId(final Integer enterpriseId) { this.enterpriseId = enterpriseId; } public void setGmtOffline(final Date gmtOffline) { this.gmtOffline = gmtOffline; } public void setGmtCreate(final Date gmtCreate) { this.gmtCreate = gmtCreate; } public void setGmtModified(final Date gmtModified) { this.gmtModified = gmtModified; } @Override public boolean equals(final Object o) { if (o == this) { return true; } else if (!(o instanceof Offline)) { return false; } else { Offline other = (Offline)o; if (!other.canEqual(this)) { return false; } else { Object this$id = this.getId(); Object other$id = other.getId(); if (this$id == null) { if (other$id != null) { return false; } } else if (!this$id.equals(other$id)) { return false; } Object this$pointId = this.getPointId(); Object other$pointId = other.getPointId(); if (this$pointId == null) { if (other$pointId != null) { return false; } } else if (!this$pointId.equals(other$pointId)) { return false; } Object this$enterpriseId = this.getEnterpriseId(); Object other$enterpriseId = other.getEnterpriseId(); if (this$enterpriseId == null) { if (other$enterpriseId != null) { return false; } } else if (!this$enterpriseId.equals(other$enterpriseId)) { return false; } label62: { Object this$gmtOffline = this.getGmtOffline(); Object other$gmtOffline = other.getGmtOffline(); if (this$gmtOffline == null) { if (other$gmtOffline == null) { break label62; } } else if (this$gmtOffline.equals(other$gmtOffline)) { break label62; } return false; } label55: { Object this$gmtCreate = this.getGmtCreate(); Object other$gmtCreate = other.getGmtCreate(); if (this$gmtCreate == null) { if (other$gmtCreate == null) { break label55; } } else if (this$gmtCreate.equals(other$gmtCreate)) { break label55; } return false; } Object this$gmtModified = this.getGmtModified(); Object other$gmtModified = other.getGmtModified(); if (this$gmtModified == null) { if (other$gmtModified != null) { return false; } } else if (!this$gmtModified.equals(other$gmtModified)) { return false; } return true; } } } protected boolean canEqual(final Object other) { return other instanceof Offline; } @Override public int hashCode() { boolean PRIME = true; Object $id = this.getId(); int result = 1; result = result * 59 + ($id == null ? 43 : $id.hashCode()); Object $pointId = this.getPointId(); result = result * 59 + ($pointId == null ? 43 : $pointId.hashCode()); Object $enterpriseId = this.getEnterpriseId(); result = result * 59 + ($enterpriseId == null ? 43 : $enterpriseId.hashCode()); Object $gmtOffline = this.getGmtOffline(); result = result * 59 + ($gmtOffline == null ? 43 : $gmtOffline.hashCode()); Object $gmtCreate = this.getGmtCreate(); result = result * 59 + ($gmtCreate == null ? 43 : $gmtCreate.hashCode()); Object $gmtModified = this.getGmtModified(); result = result * 59 + ($gmtModified == null ? 43 : $gmtModified.hashCode()); return result; } @Override public String toString() { return "Offline(id=" + this.getId() + ", pointId=" + this.getPointId() + ", enterpriseId=" + this.getEnterpriseId() + ", gmtOffline=" + this.getGmtOffline() + ", gmtCreate=" + this.getGmtCreate() + ", gmtModified=" + this.getGmtModified() + ")"; } public Offline() { } public Offline(final Integer id, final Integer pointId, final Integer enterpriseId, final Date gmtOffline, final Date gmtCreate, final Date gmtModified) { this.id = id; this.pointId = pointId; this.enterpriseId = enterpriseId; this.gmtOffline = gmtOffline; this.gmtCreate = gmtCreate; this.gmtModified = gmtModified; } }