save save save

This commit is contained in:
Simon Bruder 2023-11-28 15:08:57 +01:00
parent 8a67493fc0
commit e4bf0ed494
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -34,6 +34,7 @@ public class UserManagement {
User user = users.save(new User(userAccounts.create(name,UnencryptedPassword.of(password),Role.of("CUSTOMER")),address));
user.setLastname(lastname);
user.setFirstname(firstname);
//userAccounts.save(user.getUserAccount());
users.save(user);
System.out.println(user.getLastname()); // NOT NULL
return user;