I wanted to store a set of strings which are not available in any other table in the schema. For example,
I have a table with country_id, country_name and animals
The column animals need to be a Collection (Set or List) and the animals in the list are not available in any other table of the schema. They are just plain java strings. I went through the link here. But it only mentions the ways to store a collection of objects that are available as a column in another table. Any help would be much appreciated. Thanks in advance. Cheers!
Just use a JDO
AttributeConverter
, and the Collection field can be converted into a String for example (stored in a single column). As per the docs