Skip to content

Commit 3848ec5

Browse files
committed
Refine AOT support.
1 parent 5d11d63 commit 3848ec5

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
import org.springframework.aot.generate.GenerationContext;
1919
import org.springframework.core.ResolvableType;
2020
import org.springframework.data.aot.ManagedTypesBeanRegistrationAotProcessor;
21-
import org.springframework.data.domain.ManagedTypes;
2221
import org.springframework.lang.Nullable;
2322
import org.springframework.util.ClassUtils;
2423

@@ -38,7 +37,7 @@ protected boolean isMatch(@Nullable Class<?> beanType, @Nullable String beanName
3837
}
3938

4039
protected boolean isNeo4jManagedTypes(@Nullable Class<?> beanType) {
41-
return beanType != null && ClassUtils.isAssignable(ManagedTypes.class, beanType);
40+
return beanType != null && ClassUtils.isAssignable(Neo4jManagedTypes.class, beanType);
4241
}
4342

4443
@Override

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public void registerHints(RuntimeHints hints, @Nullable ClassLoader classLoader)
4444
TypeReference.of(SimpleQueryByExampleExecutor.class),
4545
TypeReference.of(BeforeBindCallback.class),
4646
TypeReference.of(AfterConvertCallback.class),
47-
// todo "temporary" fix, should get resolved when defined in @GeneratedValue
47+
// todo "temporary" fix, should get resolved when class parameters in annotations getting discovered
4848
TypeReference.of(UUIDStringGenerator.class),
4949
TypeReference.of(GeneratedValue.InternalIdGenerator.class),
5050
TypeReference.of(GeneratedValue.UUIDGenerator.class)

0 commit comments

Comments
 (0)