From e4bf0ed49487c0db7687032ccc5e2c554e5c4d21 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Tue, 28 Nov 2023 15:08:57 +0100 Subject: [PATCH] save save save --- src/main/java/catering/users/UserManagement.java | 1 + 1 file changed, 1 insertion(+) 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;