Hi There,
I implemented custom JPA provider in my project and everything was working fine till now. But now I am trying to migrate to Keycloak 18 (Quarkus) from keycloak 15 and started getting below error for the same JPA provider.
java.lang.IllegalArgumentException: No query defined for that name [findByTenantId]
at org.hibernate.internal.AbstractSharedSessionContract.buildQueryFromName(AbstractSharedSessionContract.java:923)
at org.hibernate.internal.AbstractSharedSessionContract.createNamedQuery(AbstractSharedSessionContract.java:1038)
at org.hibernate.internal.AbstractSessionImpl.createNamedQuery(AbstractSessionImpl.java:23)
at jdk.internal.reflect.GeneratedMethodAccessor57.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.keycloak.connections.jpa.PersistenceExceptionConverter.invoke(PersistenceExceptionConverter.java:60)
I referred the "domain-extension" example from the "examples" directory of the keycloak source code and I don't see anything different from the current setup I have. Is there something changed with the way we add custom JPA providers? I would really appreciate your help.
Thanks,
Sagun