Skip to content

Commit c2293ef

Browse files
christophstroblmp911de
authored andcommitted
Add missing reflection hints.
Allow Kotlin to resolve everything it needs. Closes #2717 Original pull request: #2720
1 parent 39e79a1 commit c2293ef

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/main/java/org/springframework/data/repository/aot/hint/RepositoryRuntimeHints.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@
3030
import org.springframework.data.repository.core.support.RepositoryFragment;
3131
import org.springframework.data.repository.core.support.RepositoryFragmentsFactoryBean;
3232
import org.springframework.data.repository.core.support.TransactionalRepositoryFactoryBeanSupport;
33+
import org.springframework.data.repository.query.FluentQuery;
34+
import org.springframework.data.repository.query.FluentQuery.FetchableFluentQuery;
35+
import org.springframework.data.repository.query.FluentQuery.ReactiveFluentQuery;
3336
import org.springframework.data.repository.query.QueryByExampleExecutor;
3437
import org.springframework.lang.Nullable;
3538

@@ -53,7 +56,10 @@ public void registerHints(RuntimeHints hints, @Nullable ClassLoader classLoader)
5356
TypeReference.of(TransactionalRepositoryFactoryBeanSupport.class), //
5457
TypeReference.of(QueryByExampleExecutor.class), //
5558
TypeReference.of(MappingContext.class), //
56-
TypeReference.of(RepositoryMetadata.class) //
59+
TypeReference.of(RepositoryMetadata.class), //
60+
TypeReference.of(FluentQuery.class), //
61+
TypeReference.of(FetchableFluentQuery.class), //
62+
TypeReference.of(ReactiveFluentQuery.class) //
5763
), builder -> {
5864
builder.withMembers(MemberCategory.INVOKE_PUBLIC_METHODS);
5965
});

0 commit comments

Comments
 (0)