diff --git a/extensions/security-jpa-reactive/deployment/src/main/java/io/quarkus/security/jpa/reactive/deployment/QuarkusSecurityJpaReactiveProcessor.java b/extensions/security-jpa-reactive/deployment/src/main/java/io/quarkus/security/jpa/reactive/deployment/QuarkusSecurityJpaReactiveProcessor.java index 9bd10abe9df6d..0ac604a2e5d27 100644 --- a/extensions/security-jpa-reactive/deployment/src/main/java/io/quarkus/security/jpa/reactive/deployment/QuarkusSecurityJpaReactiveProcessor.java +++ b/extensions/security-jpa-reactive/deployment/src/main/java/io/quarkus/security/jpa/reactive/deployment/QuarkusSecurityJpaReactiveProcessor.java @@ -210,12 +210,13 @@ private static ResultHandle lookupUserById(JpaSecurityDefinition jpaSecurityDefi // session.createQuery("<>", UserEntity.class) ResultHandle query1 = methodCreator.invokeInterfaceMethod( - ofMethod(Mutiny.Session.class, "createQuery", Mutiny.Query.class, String.class, Class.class), + ofMethod(Mutiny.Session.class, "createQuery", Mutiny.SelectionQuery.class, String.class, Class.class), session, methodCreator.load(hql), userEntityClass); // .setParameter("name", username) ResultHandle query2 = methodCreator.invokeInterfaceMethod( - ofMethod(Mutiny.Query.class, "setParameter", Mutiny.Query.class, String.class, Object.class), + ofMethod(Mutiny.SelectionQuery.class, "setParameter", Mutiny.SelectionQuery.class, String.class, + Object.class), query1, methodCreator.load("name"), username); // .getSingleResultOrNull()