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: improve handling of collection subclass columns #569

Merged
merged 1 commit into from
Dec 31, 2024

Conversation

jesse-gallagher
Copy link
Contributor

@jesse-gallagher jesse-gallagher commented Dec 30, 2024

I found that a @Column property where the type is a non-generic subclass/subinterface of a Collection or Map type (like JsonObject) caused a ClassCastException. This change will try to find the actual declaration of the Map or Collection type to find its type arguments.

I expect that this still wouldn't handle the further-down case of a templated type that then uses that generic type in a property, but that would be a bigger problem to solve.

@genie-jnosql
Copy link
Collaborator

Can one of the admins verify this patch?

@otaviojava
Copy link
Contributor

Thank you @jesse-gallagher

@otaviojava otaviojava merged commit ecf992b into eclipse-jnosql:main Dec 31, 2024
3 checks passed
@jesse-gallagher jesse-gallagher deleted the fix-field-metadata branch January 2, 2025 15:56
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.

3 participants