jpos / jPOS-EE

jPOS Extended Edition
http://jpos.org
GNU Affero General Public License v3.0
107 stars 152 forks source link

TagsConverter: correctly handle null values #277

Closed barspi closed 1 year ago

barspi commented 1 year ago

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.