turn on cache

This commit is contained in:
Bill Burke 2014-07-03 15:29:31 -04:00
parent e99a675c50
commit e37b5613ed
2 changed files with 3 additions and 2 deletions

View file

@ -683,7 +683,8 @@ public class RealmAdapter implements RealmModel {
entity.setSocialProvider(socialLink.getSocialProvider()); entity.setSocialProvider(socialLink.getSocialProvider());
entity.setSocialUserId(socialLink.getSocialUserId()); entity.setSocialUserId(socialLink.getSocialUserId());
entity.setSocialUsername(socialLink.getSocialUsername()); entity.setSocialUsername(socialLink.getSocialUsername());
entity.setUser(((UserAdapter) user).getUser()); UserEntity userEntity = em.getReference(UserEntity.class, user.getId());
entity.setUser(userEntity);
em.persist(entity); em.persist(entity);
em.flush(); em.flush();
} }

View file

@ -24,7 +24,7 @@
}, },
"modelCache": { "modelCache": {
"provider": "${keycloak.model.cache.provider:}" "provider": "${keycloak.model.cache.provider:simple}"
}, },
"timer": { "timer": {