Add flush to commit changes.

This commit is contained in:
Paulo Gustavo Veiga 2022-02-17 18:11:54 -08:00
parent fad7442ffc
commit bea7bea486

View File

@ -123,6 +123,7 @@ public class UserManagerImpl
final HibernateTemplate template = getHibernateTemplate(); final HibernateTemplate template = getHibernateTemplate();
collaborations.forEach(c -> template.delete(c)); collaborations.forEach(c -> template.delete(c));
template.delete(collaborator); template.delete(collaborator);
template.flush();
// Save all new... // Save all new...
this.createUser(user); this.createUser(user);