guyue
5 天以前 e285517df2a3cb206282a41f958c80044422a552
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
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 type
 */
@TableName(value ="type")
@Data
public class Type implements Serializable {
    /**
     * 类型
     */
    @TableId(type = IdType.AUTO)
    private Integer type_id;
 
    /**
     * 名字
     */
    private String type_name;
 
    /**
     * 0-未删除 1-删除
     */
    private Integer del_flag;
 
    @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;
//        }
//        Type other = (Type) that;
//        return (this.getType_id() == null ? other.getType_id() == null : this.getType_id().equals(other.getType_id()))
//            && (this.getType_name() == null ? other.getType_name() == null : this.getType_name().equals(other.getType_name()))
//            && (this.getDel_flag() == null ? other.getDel_flag() == null : this.getDel_flag().equals(other.getDel_flag()));
//    }
//
//    @Override
//    public int hashCode() {
//        final int prime = 31;
//        int result = 1;
//        result = prime * result + ((getType_id() == null) ? 0 : getType_id().hashCode());
//        result = prime * result + ((getType_name() == null) ? 0 : getType_name().hashCode());
//        result = prime * result + ((getDel_flag() == null) ? 0 : getDel_flag().hashCode());
//        return result;
//    }
//
//    @Override
//    public String toString() {
//        StringBuilder sb = new StringBuilder();
//        sb.append(getClass().getSimpleName());
//        sb.append(" [");
//        sb.append("Hash = ").append(hashCode());
//        sb.append(", type_id=").append(type_id);
//        sb.append(", type_name=").append(type_name);
//        sb.append(", del_flag=").append(del_flag);
//        sb.append(", serialVersionUID=").append(serialVersionUID);
//        sb.append("]");
//        return sb.toString();
//    }
}