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);