yangys
2024-03-30 871c0fce344b24c8046ec01173eca79b9e60c1d7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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;
    }
}