Hi All,
I have must what be a common problem and I found some indication of how togo about this in the Tips & Tricks but it didn't make sense to me...
so example tables :
Title (id,name)
Contributor (id,name)
TitleContributor (id,titleid,contributorid,role)
Role(id,name)
I'm sure that you understand the relationship above and that TitleContributor is the intersection table between Title & Contributor and that each relationship can be assigned to a role (Author,Illustrator,Editor etc)
When I load the Title object then I can easily get all assigned Contributor objects by making a mapping one-to-many relationship
but using this method I dont get my Role object, which is in a one to one relationship with TitleContributor...
Anyone knows the best way to go about this ?
Kind Regards,
Lennart
|