Good morning,
I've a two legacy tables named A and P, linked by a Many-To-One relation.
The problem is that the link is not made to the primary key, but to two fields ("code" and "type") in table P whose combination is unique.
I'm aware of the "property-ref" semantic to link to a (single!) column other than the primary key.
My question is : does Hibernate support a "property-ref" link to more than one column (i.e., a "composite-property-ref") ? How ?
Something like (A.pcode + A.ptype) -> (P.code + P.type)
I'm using Hibernate 2.1.4
Thanks a lot,
Martin
|