package com.qianwen.core.mp.base;
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
|
/* loaded from: blade-starter-mybatis-9.3.0.0-SNAPSHOT.jar:org/springblade/core/mp/base/IdEntity.class */
|
public class IdEntity {
|
@TableId(value = "id", type = IdType.ASSIGN_ID)
|
private Long id;
|
|
public void setId(final Long id) {
|
this.id = id;
|
}
|
|
public boolean equals(final Object o) {
|
if (o == this) {
|
return true;
|
}
|
if (o instanceof IdEntity) {
|
IdEntity other = (IdEntity) o;
|
if (other.canEqual(this)) {
|
Object this$id = getId();
|
Object other$id = other.getId();
|
return this$id == null ? other$id == null : this$id.equals(other$id);
|
}
|
return false;
|
}
|
return false;
|
}
|
|
protected boolean canEqual(final Object other) {
|
return other instanceof IdEntity;
|
}
|
|
public int hashCode() {
|
Object $id = getId();
|
int result = (1 * 59) + ($id == null ? 43 : $id.hashCode());
|
return result;
|
}
|
|
public String toString() {
|
return "IdEntity(id=" + getId() + ")";
|
}
|
|
public IdEntity(final Long id) {
|
this.id = id;
|
}
|
|
public IdEntity() {
|
}
|
|
public Long getId() {
|
return this.id;
|
}
|
}
|