From 91bba01df6bfaeb805e6cbe18b3e992aed321d40 Mon Sep 17 00:00:00 2001 From: Sanne Grinovero Date: Mon, 24 Apr 2023 15:51:04 +0100 Subject: [PATCH] Adapt security-jpa-reactive for Hibernate Reactive 2.0.0.CR1's API changes --- .../deployment/QuarkusSecurityJpaReactiveProcessor.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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()