The Keycloak EntityManager can't mapping any model #8631
Unanswered
proton5000
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Keycloak version 14.0
I have store some custom tables in The Keycloak postgres database, my entity:
When i try to get this data by the EntityManager firts of all I have receive the EntityManager:
EntityManager em = jpaConnectionProvider.getEntityManager();Then I try to get the data from my custom table:
StoreTestModel storeTestModel = em.createQuery("SELECT u FROM store_test_model u WHERE u.fieldOne = :fieldOne", StoreTestModel.class).setParameter("fieldOne", "test one").getSingleResult();my persistence.xml :
but i recive the exception:
plese, help me to solve this issue 😢
Beta Was this translation helpful? Give feedback.
All reactions