Hi,
I have a class like
public class EligibilityRules {
long id;
Set certifications; // set of name value pairs
Set specializations; // set of name value pairs
Set authorizations; // set of name value pairs
...
...
// 10 more collections like the above
}
The straight-forward way is to map each collection to a separate physical table. However, there can be potentially more and more. Is there any way of mapping all the collections to the same table with a composite key made of id and some text representing the field ? What would the mapping look like ? Any ideas of how this can be done ?
Thanks,
ramky
|