If you want to store more than one enum
value and use the JPA (which is not a dataclass, just in case), there are a few approaches which work, the most common one is the approach using a link table with the @ElementCollection
and @CollectionTable
annotation - here's a related stackoverflow question.
I usually prefer storing the values as a string and just adjust the getter/setters to split/join it with a delimiter, but this is not best practice, just something which works.