Hi,
Is there a way to map the value of a Map as a collection of Objects?
A small example why I'm trying to do this:
Code:
-------------
| Survey |
|-------------|
| s_id |
| description |
-------------
-----------
| Question |
|-----------|
| q_id |
| language |
| text |
| s_id |
-----------
(the primary key in Question is a composite of q_id and language)
I want to have a Map in survey where the key's are the different languages and the values of the Map are the Collections of questions that correspond to the language.
At this moment I've mapped the Questions as a Set in the Survey and have a method that accepts a language and searches through the Set and compares the languages.