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_task
|
*/
|
@TableName(value ="keyword_task")
|
@Data
|
public class KeywordTask implements Serializable {
|
/**
|
*
|
*/
|
@TableId(type = IdType.AUTO)
|
private Integer id;
|
|
/**
|
*
|
*/
|
private Integer keyword_id;
|
|
/**
|
*
|
*/
|
private String task_id;
|
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;
|
}
|
KeywordTask other = (KeywordTask) that;
|
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
|
&& (this.getKeyword_id() == null ? other.getKeyword_id() == null : this.getKeyword_id().equals(other.getKeyword_id()))
|
&& (this.getTask_id() == null ? other.getTask_id() == null : this.getTask_id().equals(other.getTask_id()))
|
&& (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 + ((getId() == null) ? 0 : getId().hashCode());
|
result = prime * result + ((getKeyword_id() == null) ? 0 : getKeyword_id().hashCode());
|
result = prime * result + ((getTask_id() == null) ? 0 : getTask_id().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(", id=").append(id);
|
sb.append(", keyword_id=").append(keyword_id);
|
sb.append(", task_id=").append(task_id);
|
sb.append(", serialVersionUID=").append(serialVersionUID);
|
sb.append(", status=").append(status);
|
sb.append("]");
|
return sb.toString();
|
}
|
}
|