package com.linghu.model.entity;
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.TableField;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
import java.io.Serializable;
|
import lombok.Data;
|
|
/**
|
*
|
* @TableName callword
|
*/
|
@TableName(value ="callword")
|
@Data
|
public class Callword implements Serializable {
|
/**
|
* 提示词id
|
*/
|
@TableId
|
private String callwordId;
|
|
/**
|
* 关键词id
|
*/
|
private Integer keywordId;
|
|
/**
|
* 提示词名称
|
*/
|
private String callwordName;
|
|
/**
|
* 提示词状态,1-未采集,2-采集完成,3-采集报错
|
*/
|
private String status;
|
|
@TableField(exist = false)
|
private static final long serialVersionUID = 1L;
|
|
@Override
|
public boolean equals(Object that) {
|
if (this == that) {
|
return true;
|
}
|
if (that == null) {
|
return false;
|
}
|
if (getClass() != that.getClass()) {
|
return false;
|
}
|
Callword other = (Callword) that;
|
return (this.getCallwordId() == null ? other.getCallwordId() == null : this.getCallwordId().equals(other.getCallwordId()))
|
&& (this.getKeywordId() == null ? other.getKeywordId() == null : this.getKeywordId().equals(other.getKeywordId()))
|
&& (this.getCallwordName() == null ? other.getCallwordName() == null : this.getCallwordName().equals(other.getCallwordName()))
|
&& (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()));
|
}
|
|
@Override
|
public int hashCode() {
|
final int prime = 31;
|
int result = 1;
|
result = prime * result + ((getCallwordId() == null) ? 0 : getCallwordId().hashCode());
|
result = prime * result + ((getKeywordId() == null) ? 0 : getKeywordId().hashCode());
|
result = prime * result + ((getCallwordName() == null) ? 0 : getCallwordName().hashCode());
|
result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
|
return result;
|
}
|
|
@Override
|
public String toString() {
|
StringBuilder sb = new StringBuilder();
|
sb.append(getClass().getSimpleName());
|
sb.append(" [");
|
sb.append("Hash = ").append(hashCode());
|
sb.append(", callwordId=").append(callwordId);
|
sb.append(", keywordId=").append(keywordId);
|
sb.append(", callwordName=").append(callwordName);
|
sb.append(", status=").append(status);
|
sb.append(", serialVersionUID=").append(serialVersionUID);
|
sb.append("]");
|
return sb.toString();
|
}
|
}
|