From bea7bea486dbe701f27d0abb6f34aadbad3c543c Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Thu, 17 Feb 2022 18:11:54 -0800 Subject: [PATCH] Add flush to commit changes. --- .../src/main/java/com/wisemapping/dao/UserManagerImpl.java | 1 + 1 file changed, 1 insertion(+) diff --git a/wise-webapp/src/main/java/com/wisemapping/dao/UserManagerImpl.java b/wise-webapp/src/main/java/com/wisemapping/dao/UserManagerImpl.java index 47107441..4dba546c 100644 --- a/wise-webapp/src/main/java/com/wisemapping/dao/UserManagerImpl.java +++ b/wise-webapp/src/main/java/com/wisemapping/dao/UserManagerImpl.java @@ -123,6 +123,7 @@ public class UserManagerImpl final HibernateTemplate template = getHibernateTemplate(); collaborations.forEach(c -> template.delete(c)); template.delete(collaborator); + template.flush(); // Save all new... this.createUser(user);