Skip to content

Remove declaration of ResultSetMapping as sealed#886

Open
sebersole wants to merge 1 commit intojakartaee:mainfrom
sebersole:unseal-rsm
Open

Remove declaration of ResultSetMapping as sealed#886
sebersole wants to merge 1 commit intojakartaee:mainfrom
sebersole:unseal-rsm

Conversation

@sebersole
Copy link
Copy Markdown
Contributor

@sebersole sebersole commented Jan 8, 2026

Hibernate, and I am assuming other providers, have historical ways to define more rich ResultSet mappings.

Because ResultSetMapping was introduced as sealed and all of its impls as records, it is impossible to model those richer models using this API; which is a shame imo. Here is a PR to remove the seal and allow such usage.

A further step would be to make the impls NOT records. This would allow even better implementation of this idea by implementors. I held off on that for the time being until we had consensus on this idea in general.

#887

@gavinking gavinking linked an issue Feb 21, 2026 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove declaration of ResultSetMapping as sealed

1 participant