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

Feature/278 immutable datatypes #280

Merged
merged 8 commits into from
Nov 19, 2024

Conversation

luxbe
Copy link
Contributor

@luxbe luxbe commented Nov 19, 2024

This PR fixes #278 which allows new datatypes like java.util.Locale to be stored when a Converter is specified. This is done by assuming every type that is not managed by JOPA itself or that has a special builder defined in the JOPA codebase like Maps and Collections, is immutable.

It also improves the error shown when the @Convert annotation is missing by fixing a NullPointerException.

References to DateInstanceBuilder were also removed, because the special handling for Dates is no longer needed.

@luxbe luxbe changed the base branch from master to development November 19, 2024 14:41
Copy link
Contributor

@ledsoft ledsoft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks very much!

@ledsoft ledsoft merged commit 759a9c0 into kbss-cvut:development Nov 19, 2024
1 check passed
@luxbe luxbe deleted the feature/278-immutable-datatypes branch November 20, 2024 07:16
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.

Custom Converter for Datatypes without No-Args constructor fails
2 participants