Skip to content

Commit

Permalink
Fix serialization of Spring Data JPA Page in native mode
Browse files Browse the repository at this point in the history
  • Loading branch information
geoand committed Oct 6, 2021
1 parent c55782f commit 521992a
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,18 @@ IgnorableNonIndexedClasses ignorable() {
return new IgnorableNonIndexedClasses(ignorable);
}

@BuildStep
void registerReflection(BuildProducer<ReflectiveClassBuildItem> 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<GeneratedClassBuildItem> generatedClasses,
Expand Down

0 comments on commit 521992a

Please sign in to comment.