Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix serialization of Spring Data JPA Page in native mode #20568

Merged
merged 1 commit into from
Oct 8, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,19 @@ 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.SliceImpl",
"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