package com.panzhihua.service_community.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 com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import java.io.Serializable; import java.util.Date; /** * 三说会堂事件类型表 * @TableName com_sanshuo_event */ @TableName(value ="com_sanshuo_event") @Data @ApiModel("三说会堂事件类型") public class ComSanshuoEvent implements Serializable { /** * id */ @ApiModelProperty("id,修改时传") @TableId(type = IdType.AUTO) @JsonSerialize(using = ToStringSerializer.class) private Integer id; /** * 事件类型名称 */ @ApiModelProperty("事件类型名称") private String name; /** * 创建时间 */ @ApiModelProperty("创建时间") private Date createTime; /** * 修改时间 */ @ApiModelProperty("修改时间") private Date updateTime; /** * 0禁用1启用 */ @ApiModelProperty("0禁用1启用") private Integer status; /** * 0删除1正常 */ @ApiModelProperty("0删除1正常") private Integer delFlag; @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; } ComSanshuoEvent other = (ComSanshuoEvent) 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.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime())) && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime())) && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus())) && (this.getDelFlag() == null ? other.getDelFlag() == null : this.getDelFlag().equals(other.getDelFlag())); } @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 + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode()); result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode()); result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode()); result = prime * result + ((getDelFlag() == null) ? 0 : getDelFlag().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(", name=").append(name); sb.append(", createTime=").append(createTime); sb.append(", updateTime=").append(updateTime); sb.append(", status=").append(status); sb.append(", delFlag=").append(delFlag); sb.append(", serialVersionUID=").append(serialVersionUID); sb.append("]"); return sb.toString(); } }