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:
Zhongheng Liu 2024-01-17 23:45:58 +02:00
commit 64b4b7e404
No known key found for this signature in database

View file

@ -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;
}
}