From 1f35f584f282ec59d15a4bc18f23b194ee793bb9 Mon Sep 17 00:00:00 2001 From: Michael Simons Date: Tue, 26 Sep 2023 16:42:21 +0200 Subject: [PATCH] Add missing runtime hints for imperative and reactive cypher dsl executors. --- .../org/springframework/data/neo4j/aot/Neo4jRuntimeHints.java | 4 ++++ 1 file changed, 4 insertions(+) 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 879c71ce0..c49b17bcb 100644 --- a/src/main/java/org/springframework/data/neo4j/aot/Neo4jRuntimeHints.java +++ b/src/main/java/org/springframework/data/neo4j/aot/Neo4jRuntimeHints.java @@ -24,7 +24,9 @@ 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.CypherdslConditionExecutorImpl; import org.springframework.data.neo4j.repository.query.QuerydslNeo4jPredicateExecutor; +import org.springframework.data.neo4j.repository.query.ReactiveCypherdslConditionExecutorImpl; import org.springframework.data.neo4j.repository.query.ReactiveQuerydslNeo4jPredicateExecutor; import org.springframework.data.neo4j.repository.query.SimpleQueryByExampleExecutor; import org.springframework.data.neo4j.repository.query.SimpleReactiveQueryByExampleExecutor; @@ -49,6 +51,7 @@ public class Neo4jRuntimeHints implements RuntimeHintsRegistrar { Arrays.asList( TypeReference.of(SimpleNeo4jRepository.class), TypeReference.of(SimpleQueryByExampleExecutor.class), + TypeReference.of(CypherdslConditionExecutorImpl.class), TypeReference.of(BeforeBindCallback.class), TypeReference.of(AfterConvertCallback.class), // todo "temporary" fix, should get resolved when class parameters in annotations getting discovered @@ -64,6 +67,7 @@ public class Neo4jRuntimeHints implements RuntimeHintsRegistrar { Arrays.asList( TypeReference.of(SimpleReactiveNeo4jRepository.class), TypeReference.of(SimpleReactiveQueryByExampleExecutor.class), + TypeReference.of(ReactiveCypherdslConditionExecutorImpl.class), TypeReference.of(ReactiveBeforeBindCallback.class) ), builder -> builder.withMembers(MemberCategory.INVOKE_DECLARED_CONSTRUCTORS, MemberCategory.INVOKE_PUBLIC_METHODS));