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 java.util.Date;
|
import lombok.Data;
|
|
/**
|
*
|
* @TableName result
|
*/
|
@TableName(value ="result")
|
@Data
|
public class Result implements Serializable {
|
/**
|
* 结果id
|
*/
|
@TableId
|
private Integer resultId;
|
|
/**
|
* 类型id
|
*/
|
private Integer typeId;
|
|
/**
|
* 平台id
|
*/
|
private Integer platformId;
|
|
/**
|
* 标题
|
*/
|
private String title;
|
|
/**
|
* 重复次数
|
*/
|
private Integer repetitionNum;
|
|
/**
|
* 创建时间
|
*/
|
private Date createTime;
|
|
/**
|
* 采集轮数
|
*/
|
private Integer num;
|
|
/**
|
* 来源url
|
*/
|
private String url;
|
|
@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;
|
}
|
Result other = (Result) that;
|
return (this.getResultId() == null ? other.getResultId() == null : this.getResultId().equals(other.getResultId()))
|
&& (this.getTypeId() == null ? other.getTypeId() == null : this.getTypeId().equals(other.getTypeId()))
|
&& (this.getPlatformId() == null ? other.getPlatformId() == null : this.getPlatformId().equals(other.getPlatformId()))
|
&& (this.getTitle() == null ? other.getTitle() == null : this.getTitle().equals(other.getTitle()))
|
&& (this.getRepetitionNum() == null ? other.getRepetitionNum() == null : this.getRepetitionNum().equals(other.getRepetitionNum()))
|
&& (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
|
&& (this.getNum() == null ? other.getNum() == null : this.getNum().equals(other.getNum()))
|
&& (this.getUrl() == null ? other.getUrl() == null : this.getUrl().equals(other.getUrl()));
|
}
|
|
@Override
|
public int hashCode() {
|
final int prime = 31;
|
int result = 1;
|
result = prime * result + ((getResultId() == null) ? 0 : getResultId().hashCode());
|
result = prime * result + ((getTypeId() == null) ? 0 : getTypeId().hashCode());
|
result = prime * result + ((getPlatformId() == null) ? 0 : getPlatformId().hashCode());
|
result = prime * result + ((getTitle() == null) ? 0 : getTitle().hashCode());
|
result = prime * result + ((getRepetitionNum() == null) ? 0 : getRepetitionNum().hashCode());
|
result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
|
result = prime * result + ((getNum() == null) ? 0 : getNum().hashCode());
|
result = prime * result + ((getUrl() == null) ? 0 : getUrl().hashCode());
|
return result;
|
}
|
|
@Override
|
public String toString() {
|
StringBuilder sb = new StringBuilder();
|
sb.append(getClass().getSimpleName());
|
sb.append(" [");
|
sb.append("Hash = ").append(hashCode());
|
sb.append(", resultId=").append(resultId);
|
sb.append(", typeId=").append(typeId);
|
sb.append(", platformId=").append(platformId);
|
sb.append(", title=").append(title);
|
sb.append(", repetitionNum=").append(repetitionNum);
|
sb.append(", createTime=").append(createTime);
|
sb.append(", num=").append(num);
|
sb.append(", url=").append(url);
|
sb.append(", serialVersionUID=").append(serialVersionUID);
|
sb.append("]");
|
return sb.toString();
|
}
|
}
|