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 user = users.save(new User(userAccounts.create(name,UnencryptedPassword.of(password),Role.of("CUSTOMER")),address));
user.setLastname(lastname); user.setLastname(lastname);
user.setFirstname(firstname); user.setFirstname(firstname);
//userAccounts.save(user.getUserAccount());
users.save(user); users.save(user);
System.out.println(user.getLastname()); // NOT NULL System.out.println(user.getLastname()); // NOT NULL
return user; return user;