package com.qianwen.mdc.domain;
|
|
import java.io.Serializable;
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
|
@TableName("mdc_alarm_prompt")
|
public class MdcAlarmPrompt implements Serializable {
|
/**
|
* primary key
|
*/
|
@TableId(type=IdType.AUTO)
|
private Long id;
|
|
/**
|
* machine type id
|
*/
|
// @Column(name = "type_id")
|
private Integer typeId;
|
|
/**
|
* alarm number
|
*/
|
//@Column(name = "alarm_no")
|
private String alarmNo;
|
|
/**
|
* alarm message
|
*/
|
//@Column(name = "alarm_msg")
|
private String alarmMsg;
|
|
/**
|
* content
|
*/
|
private String content;
|
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* 获取primary key
|
*
|
* @return id - primary key
|
*/
|
public Long getId() {
|
return id;
|
}
|
|
/**
|
* 设置primary key
|
*
|
* @param id primary key
|
*/
|
public void setId(Long id) {
|
this.id = id;
|
}
|
|
/**
|
* 获取machine type id
|
*
|
* @return type_id - machine type id
|
*/
|
public Integer getTypeId() {
|
return typeId;
|
}
|
|
/**
|
* 设置machine type id
|
*
|
* @param typeId machine type id
|
*/
|
public void setTypeId(Integer typeId) {
|
this.typeId = typeId;
|
}
|
|
/**
|
* 获取alarm number
|
*
|
* @return alarm_no - alarm number
|
*/
|
public String getAlarmNo() {
|
return alarmNo;
|
}
|
|
/**
|
* 设置alarm number
|
*
|
* @param alarmNo alarm number
|
*/
|
public void setAlarmNo(String alarmNo) {
|
this.alarmNo = alarmNo;
|
}
|
|
/**
|
* 获取alarm message
|
*
|
* @return alarm_msg - alarm message
|
*/
|
public String getAlarmMsg() {
|
return alarmMsg;
|
}
|
|
/**
|
* 设置alarm message
|
*
|
* @param alarmMsg alarm message
|
*/
|
public void setAlarmMsg(String alarmMsg) {
|
this.alarmMsg = alarmMsg;
|
}
|
|
/**
|
* 获取content
|
*
|
* @return content - content
|
*/
|
public String getContent() {
|
return content;
|
}
|
|
/**
|
* 设置content
|
*
|
* @param content content
|
*/
|
public void setContent(String content) {
|
this.content = content;
|
}
|
|
@Override
|
public String toString() {
|
StringBuilder sb = new StringBuilder();
|
sb.append(getClass().getSimpleName());
|
sb.append(" [");
|
sb.append("Hash = ").append(hashCode());
|
sb.append(", id=").append(id);
|
sb.append(", typeId=").append(typeId);
|
sb.append(", alarmNo=").append(alarmNo);
|
sb.append(", alarmMsg=").append(alarmMsg);
|
sb.append(", content=").append(content);
|
sb.append("]");
|
return sb.toString();
|
}
|
|
@Override
|
public boolean equals(Object that) {
|
if (this == that) {
|
return true;
|
}
|
if (that == null) {
|
return false;
|
}
|
if (getClass() != that.getClass()) {
|
return false;
|
}
|
MdcAlarmPrompt other = (MdcAlarmPrompt) that;
|
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
|
&& (this.getTypeId() == null ? other.getTypeId() == null : this.getTypeId().equals(other.getTypeId()))
|
&& (this.getAlarmNo() == null ? other.getAlarmNo() == null : this.getAlarmNo().equals(other.getAlarmNo()))
|
&& (this.getAlarmMsg() == null ? other.getAlarmMsg() == null : this.getAlarmMsg().equals(other.getAlarmMsg()))
|
&& (this.getContent() == null ? other.getContent() == null : this.getContent().equals(other.getContent()));
|
}
|
|
@Override
|
public int hashCode() {
|
final int prime = 31;
|
int result = 1;
|
result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
|
result = prime * result + ((getTypeId() == null) ? 0 : getTypeId().hashCode());
|
result = prime * result + ((getAlarmNo() == null) ? 0 : getAlarmNo().hashCode());
|
result = prime * result + ((getAlarmMsg() == null) ? 0 : getAlarmMsg().hashCode());
|
result = prime * result + ((getContent() == null) ? 0 : getContent().hashCode());
|
return result;
|
}
|
}
|