Added UserRepository if exists by UserName handler
added corresponding typedefs to User entity class according to commit 5ce5f9 on epq-web added combined user getMapping for id and name-identified User getters
This commit is contained in:
parent
4a7f750226
commit
64b4b7e404
1 changed files with 77 additions and 18 deletions
|
|
@ -16,19 +16,29 @@ public class User {
|
|||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.AUTO)
|
||||
@Getter
|
||||
Long id;
|
||||
Long id;
|
||||
@Getter
|
||||
@Setter
|
||||
String userName;
|
||||
String userName;
|
||||
@Getter
|
||||
@Setter
|
||||
Date dateJoined;
|
||||
Date dateJoined;
|
||||
@Getter
|
||||
@Setter
|
||||
Date lastSeen;
|
||||
@Getter
|
||||
@Setter
|
||||
String passwordHash;
|
||||
|
||||
public User() {
|
||||
|
||||
}
|
||||
public User(Long id, String userName, Date dateJoined) {
|
||||
|
||||
public User(Long id, String userName, Date dateJoined, Date lastSeen, String passwordHash) {
|
||||
this.id = id;
|
||||
this.userName = userName;
|
||||
this.dateJoined = dateJoined;
|
||||
this.lastSeen = lastSeen;
|
||||
this.passwordHash = passwordHash;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue