-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUser.java
52 lines (40 loc) · 1.05 KB
/
User.java
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
package com.example.entry;
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;
@TableName("t_user")
public class User implements Serializable {
@TableId(value = "u_id", type = IdType.AUTO)
private Long id;
@TableField("u_name")
private String name;
@TableField("u_gender")
private Gender gender;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Gender getGender() {
return gender;
}
public void setGender(Gender gender) {
this.gender = gender;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@Override
public String toString() {
return "User{" +
"uid=" + id +
", name='" + name + '\'' +
'}';
}
}