Skip to content

Commit

Permalink
Adapt security-jpa-reactive for Hibernate Reactive 2.0.0.CR1's API ch…
Browse files Browse the repository at this point in the history
…anges
  • Loading branch information
Sanne committed Apr 24, 2023
1 parent 737925a commit 91bba01
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -210,12 +210,13 @@ private static ResultHandle lookupUserById(JpaSecurityDefinition jpaSecurityDefi

// session.createQuery("<<HQL>>", 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()
Expand Down

0 comments on commit 91bba01

Please sign in to comment.