package com.qianwen.smartman.modules.andon.entity; import com.baomidou.mybatisplus.annotation.TableName; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import com.qianwen.core.mp.base.BaseEntity; @ApiModel(value = "DeviceAndonType对象", description = "机器类型安灯类型关联表") @TableName("blade_device_andon_type") public class DeviceAndonType extends BaseEntity { private static final long serialVersionUID = 1; @ApiModelProperty("安灯类型id") private Long andonTypeId; @ApiModelProperty("机器类型id") private Long deviceTypeId; public DeviceAndonType setAndonTypeId(final Long andonTypeId) { this.andonTypeId = andonTypeId; return this; } public DeviceAndonType setDeviceTypeId(final Long deviceTypeId) { this.deviceTypeId = deviceTypeId; return this; } public String toString() { return "DeviceAndonType(andonTypeId=" + getAndonTypeId() + ", deviceTypeId=" + getDeviceTypeId() + ")"; } public boolean equals(final Object o) { if (o == this) { return true; } if (o instanceof DeviceAndonType) { DeviceAndonType other = (DeviceAndonType) o; if (other.canEqual(this) && super.equals(o)) { Object this$andonTypeId = getAndonTypeId(); Object other$andonTypeId = other.getAndonTypeId(); if (this$andonTypeId == null) { if (other$andonTypeId != null) { return false; } } else if (!this$andonTypeId.equals(other$andonTypeId)) { return false; } Object this$deviceTypeId = getDeviceTypeId(); Object other$deviceTypeId = other.getDeviceTypeId(); return this$deviceTypeId == null ? other$deviceTypeId == null : this$deviceTypeId.equals(other$deviceTypeId); } return false; } return false; } protected boolean canEqual(final Object other) { return other instanceof DeviceAndonType; } public int hashCode() { int result = super.hashCode(); Object $andonTypeId = getAndonTypeId(); int result2 = (result * 59) + ($andonTypeId == null ? 43 : $andonTypeId.hashCode()); Object $deviceTypeId = getDeviceTypeId(); return (result2 * 59) + ($deviceTypeId == null ? 43 : $deviceTypeId.hashCode()); } public Long getAndonTypeId() { return this.andonTypeId; } public Long getDeviceTypeId() { return this.deviceTypeId; } }