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("machine_protocol")
|
public class MachineProtocol implements Serializable {
|
/**
|
* primary key
|
*/
|
@TableId(type=IdType.AUTO)
|
private Integer id;
|
|
/**
|
* machine type
|
*/
|
private String name;
|
|
/**
|
* version
|
*/
|
private String version;
|
|
/**
|
* account
|
*/
|
private String account;
|
|
/**
|
* password
|
*/
|
private String password;
|
|
/**
|
* comment keys
|
*/
|
//@Column(name = "comment_key")
|
private String commentKey;
|
|
/**
|
* remark
|
*/
|
private String remark;
|
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* 获取primary key
|
*
|
* @return id - primary key
|
*/
|
public Integer getId() {
|
return id;
|
}
|
|
/**
|
* 设置primary key
|
*
|
* @param id primary key
|
*/
|
public void setId(Integer id) {
|
this.id = id;
|
}
|
|
/**
|
* 获取machine type
|
*
|
* @return name - machine type
|
*/
|
public String getName() {
|
return name;
|
}
|
|
/**
|
* 设置machine type
|
*
|
* @param name machine type
|
*/
|
public void setName(String name) {
|
this.name = name;
|
}
|
|
/**
|
* 获取version
|
*
|
* @return version - version
|
*/
|
public String getVersion() {
|
return version;
|
}
|
|
/**
|
* 设置version
|
*
|
* @param version version
|
*/
|
public void setVersion(String version) {
|
this.version = version;
|
}
|
|
/**
|
* 获取account
|
*
|
* @return account - account
|
*/
|
public String getAccount() {
|
return account;
|
}
|
|
/**
|
* 设置account
|
*
|
* @param account account
|
*/
|
public void setAccount(String account) {
|
this.account = account;
|
}
|
|
/**
|
* 获取password
|
*
|
* @return password - password
|
*/
|
public String getPassword() {
|
return password;
|
}
|
|
/**
|
* 设置password
|
*
|
* @param password password
|
*/
|
public void setPassword(String password) {
|
this.password = password;
|
}
|
|
/**
|
* 获取comment keys
|
*
|
* @return comment_key - comment keys
|
*/
|
public String getCommentKey() {
|
return commentKey;
|
}
|
|
/**
|
* 设置comment keys
|
*
|
* @param commentKey comment keys
|
*/
|
public void setCommentKey(String commentKey) {
|
this.commentKey = commentKey;
|
}
|
|
/**
|
* 获取remark
|
*
|
* @return remark - remark
|
*/
|
public String getRemark() {
|
return remark;
|
}
|
|
/**
|
* 设置remark
|
*
|
* @param remark remark
|
*/
|
public void setRemark(String remark) {
|
this.remark = remark;
|
}
|
|
@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(", name=").append(name);
|
sb.append(", version=").append(version);
|
sb.append(", account=").append(account);
|
sb.append(", password=").append(password);
|
sb.append(", commentKey=").append(commentKey);
|
sb.append(", remark=").append(remark);
|
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;
|
}
|
MachineProtocol other = (MachineProtocol) that;
|
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
|
&& (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
|
&& (this.getVersion() == null ? other.getVersion() == null : this.getVersion().equals(other.getVersion()))
|
&& (this.getAccount() == null ? other.getAccount() == null : this.getAccount().equals(other.getAccount()))
|
&& (this.getPassword() == null ? other.getPassword() == null : this.getPassword().equals(other.getPassword()))
|
&& (this.getCommentKey() == null ? other.getCommentKey() == null : this.getCommentKey().equals(other.getCommentKey()))
|
&& (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()));
|
}
|
|
@Override
|
public int hashCode() {
|
final int prime = 31;
|
int result = 1;
|
result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
|
result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
|
result = prime * result + ((getVersion() == null) ? 0 : getVersion().hashCode());
|
result = prime * result + ((getAccount() == null) ? 0 : getAccount().hashCode());
|
result = prime * result + ((getPassword() == null) ? 0 : getPassword().hashCode());
|
result = prime * result + ((getCommentKey() == null) ? 0 : getCommentKey().hashCode());
|
result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
|
return result;
|
}
|
}
|