diff --git a/extensions/spring-data-jpa/deployment/src/main/java/io/quarkus/spring/data/deployment/SpringDataJPAProcessor.java b/extensions/spring-data-jpa/deployment/src/main/java/io/quarkus/spring/data/deployment/SpringDataJPAProcessor.java index 7ccfbb56485388..7e1723e7170cfd 100644 --- a/extensions/spring-data-jpa/deployment/src/main/java/io/quarkus/spring/data/deployment/SpringDataJPAProcessor.java +++ b/extensions/spring-data-jpa/deployment/src/main/java/io/quarkus/spring/data/deployment/SpringDataJPAProcessor.java @@ -89,6 +89,18 @@ IgnorableNonIndexedClasses ignorable() { return new IgnorableNonIndexedClasses(ignorable); } + @BuildStep + void registerReflection(BuildProducer producer) { + producer.produce(new ReflectiveClassBuildItem(true, false, + "org.springframework.data.domain.Page", + "org.springframework.data.domain.Slice", + "org.springframework.data.domain.PageImpl", + "org.springframework.data.domain.Sort", + "org.springframework.data.domain.Chunk", + "org.springframework.data.domain.PageRequest", + "org.springframework.data.domain.AbstractPageRequest")); + } + @BuildStep void build(CombinedIndexBuildItem index, BuildProducer generatedClasses,