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

TagsConverter: correctly handle null values #277

Merged
merged 1 commit into from
Feb 10, 2023
Merged

Conversation

barspi
Copy link
Contributor

@barspi barspi commented Feb 10, 2023

The TagsConverter was persisting a Java null as an empty string.
Also, when retrieving a null from the DB, it was converting it to an empty Tags instance.

Among other problems, this gave errors when equals() comparing an entity with a Tags field retrieved from the DB against one that still had its in-memorynull.

@ar ar merged commit 3d2ea0c into jpos:master Feb 10, 2023
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.

2 participants