mirror of
https://github.com/st-tu-dresden-praktikum/swt23w23
synced 2024-07-19 21:04:36 +02:00
save save save
This commit is contained in:
parent
8a67493fc0
commit
e4bf0ed494
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue