From 8113c3f05e3c27992cf6e9753b87ce85ee040647 Mon Sep 17 00:00:00 2001 From: Stian Thorgersen Date: Mon, 14 Jul 2014 15:55:26 +0100 Subject: [PATCH] Fixes to persistence.xml --- .../aerogear-ups/auth-server/pom.xml | 10 ++++ .../main/resources/META-INF/persistence.xml | 17 ++---- .../main/resources/META-INF/persistence.xml | 11 +--- testsuite/integration/pom.xml | 7 --- .../main/resources/META-INF/persistence.xml | 52 ------------------- 5 files changed, 16 insertions(+), 81 deletions(-) diff --git a/project-integrations/aerogear-ups/auth-server/pom.xml b/project-integrations/aerogear-ups/auth-server/pom.xml index c32789cc08..2ea0015550 100755 --- a/project-integrations/aerogear-ups/auth-server/pom.xml +++ b/project-integrations/aerogear-ups/auth-server/pom.xml @@ -57,6 +57,16 @@ keycloak-model-jpa ${project.version} + + org.keycloak + keycloak-model-sessions-mem + ${project.version} + + + org.keycloak + keycloak-model-sessions-jpa + ${project.version} + org.keycloak keycloak-audit-api diff --git a/project-integrations/aerogear-ups/auth-server/src/main/resources/META-INF/persistence.xml b/project-integrations/aerogear-ups/auth-server/src/main/resources/META-INF/persistence.xml index a7040140f5..294edb463d 100755 --- a/project-integrations/aerogear-ups/auth-server/src/main/resources/META-INF/persistence.xml +++ b/project-integrations/aerogear-ups/auth-server/src/main/resources/META-INF/persistence.xml @@ -14,21 +14,15 @@ org.keycloak.models.jpa.entities.SocialLinkEntity org.keycloak.models.jpa.entities.AuthenticationLinkEntity org.keycloak.models.jpa.entities.UserEntity - org.keycloak.models.jpa.entities.UserSessionEntity - org.keycloak.models.jpa.entities.ClientUserSessionAssociationEntity - org.keycloak.models.jpa.entities.UsernameLoginFailureEntity org.keycloak.models.jpa.entities.UserRoleMappingEntity org.keycloak.models.jpa.entities.ScopeMappingEntity - true + + org.keycloak.models.sessions.jpa.entities.ClientUserSessionAssociationEntity + org.keycloak.models.sessions.jpa.entities.UserSessionEntity + org.keycloak.models.sessions.jpa.entities.UsernameLoginFailureEntity - - - - - - - java:jboss/datasources/ExampleDS + org.keycloak.audit.jpa.EventEntity true @@ -37,5 +31,4 @@ - diff --git a/server/src/main/resources/META-INF/persistence.xml b/server/src/main/resources/META-INF/persistence.xml index 8da00466b2..294edb463d 100755 --- a/server/src/main/resources/META-INF/persistence.xml +++ b/server/src/main/resources/META-INF/persistence.xml @@ -22,15 +22,7 @@ org.keycloak.models.sessions.jpa.entities.UserSessionEntity org.keycloak.models.sessions.jpa.entities.UsernameLoginFailureEntity - true - - - - - - - - java:jboss/datasources/ExampleDS + org.keycloak.audit.jpa.EventEntity true @@ -39,5 +31,4 @@ - diff --git a/testsuite/integration/pom.xml b/testsuite/integration/pom.xml index c18abd5f9f..acb145b71e 100755 --- a/testsuite/integration/pom.xml +++ b/testsuite/integration/pom.xml @@ -504,13 +504,6 @@ ${keycloak.model.mongo.db} ${keycloak.model.mongo.clearOnStartup} ${keycloak.model.mongo.bindIp} - - mongo - ${keycloak.model.mongo.host} - ${keycloak.model.mongo.port} - ${keycloak.model.mongo.db} - ${keycloak.model.mongo.clearOnStartup} - ${keycloak.model.mongo.bindIp} diff --git a/testsuite/integration/src/main/resources/META-INF/persistence.xml b/testsuite/integration/src/main/resources/META-INF/persistence.xml index 8d67da09d6..70544c6a93 100755 --- a/testsuite/integration/src/main/resources/META-INF/persistence.xml +++ b/testsuite/integration/src/main/resources/META-INF/persistence.xml @@ -38,56 +38,4 @@ - - - org.hibernate.ejb.HibernatePersistence - - org.keycloak.audit.jpa.EventEntity - - true - - - - - - - - - - - - -