Profile.java
1.05 KB
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
package net.ziemers.swxercise.lg.user;
import javax.persistence.Entity;
import javax.validation.constraints.NotNull;
import net.ziemers.swxercise.db.BaseEntity;
@Entity
public class Profile extends BaseEntity {
@NotNull
private String username;
@NotNull
private String passwordHash;
private String mailaddress;
public Profile() {
super();
}
public Profile(final String username, final String password) {
this.username = username;
// TODO Kennwort verhashen
this.passwordHash = password;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getPasswordHash() {
return passwordHash;
}
public void setPasswordHash(String passwordHash) {
this.passwordHash = passwordHash;
}
public String getMailaddress() {
return mailaddress;
}
public void setMailaddress(String mailaddress) {
this.mailaddress = mailaddress;
}
}