I would like to add a mapping like
Map<String, List<String>> attributes;
I have used already @MapKeyColumn for other situation, but here I do have a key/value table where a key might occur several time.
How would you solve this? Is there any (JPA built-in) solution for that kind of problem domain?
Thank you for your response!
There is no direct way. You need to create a class to represent the association or perform some sort of conversion in get/set methods.
See,
http://en.wikibooks.org/wiki/Java_Persistence/Relationships#Nested_Collections.2C_Maps_and_Matrices