two tables:
Code:
item {
* id (KEY)
* itemno
* storeid
}
itemdescription {
* id (KEY)
* itemno
* storeid
}
itemno and storeid are a unique pair, identifying an item. For an item I may have a description, identified by the same pair.
I
cannot use the "id" key instead of the pair.
itemno and storeid are modeled through a component.
Question: Is there a way to map the one-to-many relationship between item and itemdescription in hibernate 2?
Something like the property-ref attribute but that takes a component or more than one property?
Any suggestion?