forked from softeerbootcamp-7th/be-was
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUser.java
More file actions
45 lines (36 loc) · 965 Bytes
/
User.java
File metadata and controls
45 lines (36 loc) · 965 Bytes
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
package app.model;
public class User {
private Long userId;
private String password;
private String nickname;
private String email;
private String userRole;
public User(String password, String nickname, String email, String userRole) {
this.password = password;
this.nickname = nickname;
this.email = email;
this.userRole = userRole;
}
public Long getUserId() {
return userId;
}
public void setUserId(Long userId){
this.userId = userId;
}
public String getPassword() {
return password;
}
public String getNickname() {
return nickname;
}
public String getEmail() {
return email;
}
public String getUserRole() {
return userRole;
}
@Override
public String toString() {
return "User [userId=" + userId + ", password=" + password + ", name=" + nickname + ", email=" + email + "]";
}
}