Skip to content

Commit ddee657

Browse files
Add missing runtime hints for ReactiveBeforeBindCallback
See #2798.
1 parent 9a09c2b commit ddee657

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
import org.springframework.aot.hint.TypeReference;
2222
import org.springframework.data.neo4j.core.mapping.callback.AfterConvertCallback;
2323
import org.springframework.data.neo4j.core.mapping.callback.BeforeBindCallback;
24+
import org.springframework.data.neo4j.core.mapping.callback.ReactiveBeforeBindCallback;
2425
import org.springframework.data.neo4j.core.schema.GeneratedValue;
2526
import org.springframework.data.neo4j.core.support.UUIDStringGenerator;
2627
import org.springframework.data.neo4j.repository.query.QuerydslNeo4jPredicateExecutor;
@@ -61,8 +62,9 @@ public void registerHints(RuntimeHints hints, @Nullable ClassLoader classLoader)
6162
if (ReactiveWrappers.isAvailable(ReactiveWrappers.ReactiveLibrary.PROJECT_REACTOR)) {
6263
hints.reflection().registerTypes(
6364
Arrays.asList(
65+
TypeReference.of(SimpleReactiveNeo4jRepository.class),
6466
TypeReference.of(SimpleReactiveQueryByExampleExecutor.class),
65-
TypeReference.of(SimpleReactiveNeo4jRepository.class)
67+
TypeReference.of(ReactiveBeforeBindCallback.class)
6668
),
6769
builder -> builder.withMembers(MemberCategory.INVOKE_DECLARED_CONSTRUCTORS, MemberCategory.INVOKE_PUBLIC_METHODS));
6870
}

0 commit comments

Comments
 (0)