Humm....
Suppose I have Version, Language and VersionLanguage.
VersionLanguage is a class used to store the extra information about the many-to-many relationship between Version and Language. In this case, the field Default.
The Version_Language table has a surrogate key.
A version can't have the same language twice. So we want to use a Set.
I think I could do the following:
Map the class Version
Map the class Language
-> Map the class VersionLanguage, since it has a surrogate key
It didn't sound right to me to map VersionLanguage, but since it has this surrogate key, I now think it should be mapped as any other entity.
The idbag is a solution for not have to map the VersionLanguage class, but since it allows duplicate, it doesn't resolve my problem.
Should we expect idset and idmap to be added to the supported collection types?
For the moment, should I map the "relation" class as I just described?
Thanks
_________________ - Frank
|