How to store a collection of strings in jdo apache isis without joins

78 Views Asked by At

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!

1

There are 1 best solutions below

3
On

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