Hi, I'm having some trouble descring a relatively simple one-to-many association in the hbm mapping file.
I'm trying to use, following Hibernate in Action's example, the <set> tag.
The <set> tag wants a <key> tag with the key column and a <one-to-many> tag in my case.
But what if the destination table has a composite key column and I need all of it to map the children to the father ?
If I specify multiple <key> tags, of course, the parser will get angry. So I must be missing something. I even tried the <composite-element> thing but it messed Java code generation!
I know that composite keys are ugly, but we're working with legacy stuff here...
Thanks.
Giulio
|