Skip to content

Commit eb89011

Browse files
Add missing runtime hints for imperative and reactive cypher dsl executors.
1 parent be71c0d commit eb89011

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/org/springframework/data/neo4j/aot/Neo4jRuntimeHints.java

+4
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@
2424
import org.springframework.data.neo4j.core.mapping.callback.ReactiveBeforeBindCallback;
2525
import org.springframework.data.neo4j.core.schema.GeneratedValue;
2626
import org.springframework.data.neo4j.core.support.UUIDStringGenerator;
27+
import org.springframework.data.neo4j.repository.query.CypherdslConditionExecutorImpl;
2728
import org.springframework.data.neo4j.repository.query.QuerydslNeo4jPredicateExecutor;
29+
import org.springframework.data.neo4j.repository.query.ReactiveCypherdslConditionExecutorImpl;
2830
import org.springframework.data.neo4j.repository.query.ReactiveQuerydslNeo4jPredicateExecutor;
2931
import org.springframework.data.neo4j.repository.query.SimpleQueryByExampleExecutor;
3032
import org.springframework.data.neo4j.repository.query.SimpleReactiveQueryByExampleExecutor;
@@ -49,6 +51,7 @@ public void registerHints(RuntimeHints hints, @Nullable ClassLoader classLoader)
4951
Arrays.asList(
5052
TypeReference.of(SimpleNeo4jRepository.class),
5153
TypeReference.of(SimpleQueryByExampleExecutor.class),
54+
TypeReference.of(CypherdslConditionExecutorImpl.class),
5255
TypeReference.of(BeforeBindCallback.class),
5356
TypeReference.of(AfterConvertCallback.class),
5457
// todo "temporary" fix, should get resolved when class parameters in annotations getting discovered
@@ -64,6 +67,7 @@ public void registerHints(RuntimeHints hints, @Nullable ClassLoader classLoader)
6467
Arrays.asList(
6568
TypeReference.of(SimpleReactiveNeo4jRepository.class),
6669
TypeReference.of(SimpleReactiveQueryByExampleExecutor.class),
70+
TypeReference.of(ReactiveCypherdslConditionExecutorImpl.class),
6771
TypeReference.of(ReactiveBeforeBindCallback.class)
6872
),
6973
builder -> builder.withMembers(MemberCategory.INVOKE_DECLARED_CONSTRUCTORS, MemberCategory.INVOKE_PUBLIC_METHODS));

0 commit comments

Comments
 (0)