feat: add getter and setter for User.iava

This commit is contained in:
2026-06-27 01:35:31 +03:30
parent 0d1e887029
commit 904f5ba271
+33
View File
@@ -10,4 +10,37 @@ public class User {
private String email;
public User(int id, String username, String passwordHash, String email) {
this.id = id;
this.username = username;
this.password = passwordHash;
this.email = email;
}
public User(String username, String passwordHash, String email) {
this.username = username;
this.password = passwordHash;
this.email = email;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getUsername() {
return username;
}
public String getPasswordHash() {
return password;
}
public String getEmail() {
return email;
}
}