-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUser.java
More file actions
27 lines (25 loc) · 891 Bytes
/
User.java
File metadata and controls
27 lines (25 loc) · 891 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
public class User {
private int id;
private String username;
private String password;
private String role;
private String email;
private String fullName;
private boolean isActive;
public User(int id, String username, String password, String role, String email, String fullName, boolean isActive) {
this.id = id;
this.username = username;
this.password = password;
this.role = role;
this.email = email;
this.fullName = fullName;
this.isActive = isActive;
}
// Getters and Setters
public int getId() { return id; }
public String getUsername() { return username; }
public String getRole() { return role; }
public boolean isActive() { return isActive; }
public String getEmail() { return email; }
public String getFullName() { return fullName; }
}