From ddee657d613347d339118edbf8d450b62ce57e2a Mon Sep 17 00:00:00 2001 From: Michael Simons Date: Fri, 22 Sep 2023 12:43:08 +0200 Subject: [PATCH] Add missing runtime hints for `ReactiveBeforeBindCallback` See #2798. --- .../org/springframework/data/neo4j/aot/Neo4jRuntimeHints.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/springframework/data/neo4j/aot/Neo4jRuntimeHints.java b/src/main/java/org/springframework/data/neo4j/aot/Neo4jRuntimeHints.java index ddb5f9a42..879c71ce0 100644 --- a/src/main/java/org/springframework/data/neo4j/aot/Neo4jRuntimeHints.java +++ b/src/main/java/org/springframework/data/neo4j/aot/Neo4jRuntimeHints.java @@ -21,6 +21,7 @@ import org.springframework.aot.hint.RuntimeHintsRegistrar; import org.springframework.aot.hint.TypeReference; import org.springframework.data.neo4j.core.mapping.callback.AfterConvertCallback; import org.springframework.data.neo4j.core.mapping.callback.BeforeBindCallback; +import org.springframework.data.neo4j.core.mapping.callback.ReactiveBeforeBindCallback; import org.springframework.data.neo4j.core.schema.GeneratedValue; import org.springframework.data.neo4j.core.support.UUIDStringGenerator; import org.springframework.data.neo4j.repository.query.QuerydslNeo4jPredicateExecutor; @@ -61,8 +62,9 @@ public class Neo4jRuntimeHints implements RuntimeHintsRegistrar { if (ReactiveWrappers.isAvailable(ReactiveWrappers.ReactiveLibrary.PROJECT_REACTOR)) { hints.reflection().registerTypes( Arrays.asList( + TypeReference.of(SimpleReactiveNeo4jRepository.class), TypeReference.of(SimpleReactiveQueryByExampleExecutor.class), - TypeReference.of(SimpleReactiveNeo4jRepository.class) + TypeReference.of(ReactiveBeforeBindCallback.class) ), builder -> builder.withMembers(MemberCategory.INVOKE_DECLARED_CONSTRUCTORS, MemberCategory.INVOKE_PUBLIC_METHODS)); }