Browse Source

Add missing reflection hints.

Allow Kotlin to resolve everything it needs.

Closes #2717
Original pull request: #2720
pull/2706/head
Christoph Strobl 3 years ago committed by Mark Paluch
parent
commit
c2293efb02
No known key found for this signature in database
GPG Key ID: 4406B84C1661DCD1
  1. 8
      src/main/java/org/springframework/data/repository/aot/hint/RepositoryRuntimeHints.java

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

@ -30,6 +30,9 @@ import org.springframework.data.repository.core.support.RepositoryFactoryBeanSup @@ -30,6 +30,9 @@ import org.springframework.data.repository.core.support.RepositoryFactoryBeanSup
import org.springframework.data.repository.core.support.RepositoryFragment;
import org.springframework.data.repository.core.support.RepositoryFragmentsFactoryBean;
import org.springframework.data.repository.core.support.TransactionalRepositoryFactoryBeanSupport;
import org.springframework.data.repository.query.FluentQuery;
import org.springframework.data.repository.query.FluentQuery.FetchableFluentQuery;
import org.springframework.data.repository.query.FluentQuery.ReactiveFluentQuery;
import org.springframework.data.repository.query.QueryByExampleExecutor;
import org.springframework.lang.Nullable;
@ -53,7 +56,10 @@ class RepositoryRuntimeHints implements RuntimeHintsRegistrar { @@ -53,7 +56,10 @@ class RepositoryRuntimeHints implements RuntimeHintsRegistrar {
TypeReference.of(TransactionalRepositoryFactoryBeanSupport.class), //
TypeReference.of(QueryByExampleExecutor.class), //
TypeReference.of(MappingContext.class), //
TypeReference.of(RepositoryMetadata.class) //
TypeReference.of(RepositoryMetadata.class), //
TypeReference.of(FluentQuery.class), //
TypeReference.of(FetchableFluentQuery.class), //
TypeReference.of(ReactiveFluentQuery.class) //
), builder -> {
builder.withMembers(MemberCategory.INVOKE_PUBLIC_METHODS);
});

Loading…
Cancel
Save