KEYCLOAK-5405 add synchronization of the persistence context when creating a group
This commit is contained in:
parent
bb9a1335ec
commit
37479a9afe
1 changed files with 1 additions and 0 deletions
|
@ -418,6 +418,7 @@ public class JpaRealmProvider implements RealmProvider {
|
|||
RealmEntity realmEntity = em.getReference(RealmEntity.class, realm.getId());
|
||||
groupEntity.setRealm(realmEntity);
|
||||
em.persist(groupEntity);
|
||||
em.flush();
|
||||
realmEntity.getGroups().add(groupEntity);
|
||||
|
||||
GroupAdapter adapter = new GroupAdapter(realm, em, groupEntity);
|
||||
|
|
Loading…
Reference in a new issue