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.
The
TagsConverter
was persisting a Javanull
as an empty string. Also, when retrieving anull
from the DB, it was converting it to an emptyTags
instance.Among other problems, this gave errors when
equals()
comparing an entity with aTags
field retrieved from the DB against one that still had its in-memorynull
.