diff --git a/src/main/java/catering/users/UserManagement.java b/src/main/java/catering/users/UserManagement.java index 0382501..fe90e0f 100644 --- a/src/main/java/catering/users/UserManagement.java +++ b/src/main/java/catering/users/UserManagement.java @@ -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;