package com.web.generalKanBanPage.entity;
|
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
import javax.persistence.*;
|
import java.io.Serializable;
|
import java.util.Date;
|
import java.util.Objects;
|
|
@Entity
|
@Table(name = "MES_CONFIG")
|
public class GeneralKanBanPage implements Serializable{
|
|
@Id
|
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_MES_CONFIG")
|
@SequenceGenerator(sequenceName = "SEQ_MES_CONFIG", name = "SEQ_MES_CONFIG", initialValue = 5000, allocationSize=1)
|
private Long id;
|
|
@Column(name = "BS_IP")
|
private String bsIp;
|
|
@Column(name = "BS_PORT")
|
private String bsPort;
|
|
@Column(name = "BS_PATH_1")
|
private String bsPath1;
|
|
@Column(name = "BS_PATH_2")
|
private String bsPath2;
|
|
@Column(name = "BS_PATH_3")
|
private String bsPath3;
|
|
@Column(name = "BS_PATH_4")
|
private String bsPath4;
|
|
@Column(name = "BS_PATH_5")
|
private String bsPath5;
|
|
@Column(name = "BS_MAC")
|
private String bsMac;
|
|
@Column(name = "BS_NICK")
|
private String bsNick;
|
|
@Column(name = "BS_MSG")
|
private String bsMsg;
|
|
/**
|
* 创建时间
|
*/
|
@Column(name = "CREATED_TIME")
|
@Temporal(TemporalType.DATE)
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
|
protected Date createdTime;
|
|
/**
|
* 修改时间
|
*/
|
@Column(name = "MODIFIED_TIME")
|
@Temporal(TemporalType.DATE)
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
|
protected Date modifiedTime;
|
|
/**
|
* 创建人
|
*/
|
@Column(name = "PK_CREATED_BY")
|
protected Long pkCreatedBy;
|
|
/**
|
* 修改人
|
*/
|
@Column(name = "PK_MODIFIED_BY")
|
protected Long pkModifiedBy;
|
|
@Version
|
@Column(name = "VERSION")
|
protected Integer version;
|
|
public Long getId() {
|
return id;
|
}
|
|
public void setId(Long id) {
|
this.id = id;
|
}
|
|
public String getBsIp() {
|
return bsIp;
|
}
|
|
public void setBsIp(String bsIp) {
|
this.bsIp = bsIp;
|
}
|
|
public String getBsPort() {
|
return bsPort;
|
}
|
|
public void setBsPort(String bsPort) {
|
this.bsPort = bsPort;
|
}
|
|
public String getBsPath1() {
|
return bsPath1;
|
}
|
|
public void setBsPath1(String bsPath1) {
|
this.bsPath1 = bsPath1;
|
}
|
|
public String getBsPath2() {
|
return bsPath2;
|
}
|
|
public void setBsPath2(String bsPath2) {
|
this.bsPath2 = bsPath2;
|
}
|
|
public String getBsPath3() {
|
return bsPath3;
|
}
|
|
public void setBsPath3(String bsPath3) {
|
this.bsPath3 = bsPath3;
|
}
|
|
public String getBsPath4() {
|
return bsPath4;
|
}
|
|
public void setBsPath4(String bsPath4) {
|
this.bsPath4 = bsPath4;
|
}
|
|
public String getBsPath5() {
|
return bsPath5;
|
}
|
|
public void setBsPath5(String bsPath5) {
|
this.bsPath5 = bsPath5;
|
}
|
|
public String getBsMac() {
|
return bsMac;
|
}
|
|
public void setBsMac(String bsMac) {
|
this.bsMac = bsMac;
|
}
|
|
public String getBsNick() {
|
return bsNick;
|
}
|
|
public void setBsNick(String bsNick) {
|
this.bsNick = bsNick;
|
}
|
|
public String getBsMsg() {
|
return bsMsg;
|
}
|
|
public void setBsMsg(String bsMsg) {
|
this.bsMsg = bsMsg;
|
}
|
|
public Date getCreatedTime() {
|
return createdTime;
|
}
|
|
public void setCreatedTime(Date createdTime) {
|
this.createdTime = createdTime;
|
}
|
|
public Date getModifiedTime() {
|
return modifiedTime;
|
}
|
|
public void setModifiedTime(Date modifiedTime) {
|
this.modifiedTime = modifiedTime;
|
}
|
|
public Long getPkCreatedBy() {
|
return pkCreatedBy;
|
}
|
|
public void setPkCreatedBy(Long pkCreatedBy) {
|
this.pkCreatedBy = pkCreatedBy;
|
}
|
|
public Long getPkModifiedBy() {
|
return pkModifiedBy;
|
}
|
|
public void setPkModifiedBy(Long pkModifiedBy) {
|
this.pkModifiedBy = pkModifiedBy;
|
}
|
|
public Integer getVersion() {
|
return version;
|
}
|
|
public void setVersion(Integer version) {
|
this.version = version;
|
}
|
|
@Override
|
public String toString() {
|
return "GeneralKanBanPage{" +
|
"id=" + id +
|
", bsIp='" + bsIp + '\'' +
|
", bsPort='" + bsPort + '\'' +
|
", bsPath1='" + bsPath1 + '\'' +
|
", bsPath2='" + bsPath2 + '\'' +
|
", bsPath3='" + bsPath3 + '\'' +
|
", bsPath4='" + bsPath4 + '\'' +
|
", bsPath5='" + bsPath5 + '\'' +
|
", bsMac='" + bsMac + '\'' +
|
", bsNick='" + bsNick + '\'' +
|
", bsMsg='" + bsMsg + '\'' +
|
", createdTime=" + createdTime +
|
", modifiedTime=" + modifiedTime +
|
", pkCreatedBy=" + pkCreatedBy +
|
", pkModifiedBy=" + pkModifiedBy +
|
", version=" + version +
|
'}';
|
}
|
|
@Override
|
public boolean equals(Object o) {
|
if (this == o) return true;
|
if (o == null || getClass() != o.getClass()) return false;
|
GeneralKanBanPage that = (GeneralKanBanPage) o;
|
return Objects.equals(id, that.id) && Objects.equals(bsIp, that.bsIp) && Objects.equals(bsPort, that.bsPort) && Objects.equals(bsPath1, that.bsPath1) && Objects.equals(bsPath2, that.bsPath2) && Objects.equals(bsPath3, that.bsPath3) && Objects.equals(bsPath4, that.bsPath4) && Objects.equals(bsPath5, that.bsPath5) && Objects.equals(bsMac, that.bsMac) && Objects.equals(bsNick, that.bsNick) && Objects.equals(bsMsg, that.bsMsg) && Objects.equals(createdTime, that.createdTime) && Objects.equals(modifiedTime, that.modifiedTime) && Objects.equals(pkCreatedBy, that.pkCreatedBy) && Objects.equals(pkModifiedBy, that.pkModifiedBy) && Objects.equals(version, that.version);
|
}
|
|
@Override
|
public int hashCode() {
|
return Objects.hash(id, bsIp, bsPort, bsPath1, bsPath2, bsPath3, bsPath4, bsPath5, bsMac, bsNick, bsMsg, createdTime, modifiedTime, pkCreatedBy, pkModifiedBy, version);
|
}
|
}
|