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 keyword
|
*/
|
@TableName(value ="keyword")
|
@Data
|
public class Keyword implements Serializable {
|
/**
|
* 关键词
|
*/
|
@TableId(type = IdType.AUTO)
|
private Integer keywordId;
|
|
/**
|
* 关联订单id
|
*/
|
private String orderId;
|
|
/**
|
* 关键词名称
|
*/
|
private String keywordName;
|
|
/**
|
* 采集轮数
|
*/
|
private Integer num;
|
|
@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;
|
}
|
Keyword other = (Keyword) that;
|
return (this.getKeywordId() == null ? other.getKeywordId() == null : this.getKeywordId().equals(other.getKeywordId()))
|
&& (this.getOrderId() == null ? other.getOrderId() == null : this.getOrderId().equals(other.getOrderId()))
|
&& (this.getKeywordName() == null ? other.getKeywordName() == null : this.getKeywordName().equals(other.getKeywordName()))
|
&& (this.getNum() == null ? other.getNum() == null : this.getNum().equals(other.getNum()));
|
}
|
|
@Override
|
public int hashCode() {
|
final int prime = 31;
|
int result = 1;
|
result = prime * result + ((getKeywordId() == null) ? 0 : getKeywordId().hashCode());
|
result = prime * result + ((getOrderId() == null) ? 0 : getOrderId().hashCode());
|
result = prime * result + ((getKeywordName() == null) ? 0 : getKeywordName().hashCode());
|
result = prime * result + ((getNum() == null) ? 0 : getNum().hashCode());
|
return result;
|
}
|
|
@Override
|
public String toString() {
|
StringBuilder sb = new StringBuilder();
|
sb.append(getClass().getSimpleName());
|
sb.append(" [");
|
sb.append("Hash = ").append(hashCode());
|
sb.append(", keywordId=").append(keywordId);
|
sb.append(", orderId=").append(orderId);
|
sb.append(", keywordName=").append(keywordName);
|
sb.append(", num=").append(num);
|
sb.append(", serialVersionUID=").append(serialVersionUID);
|
sb.append("]");
|
return sb.toString();
|
}
|
}
|