Hello All,
I have to design a mapping where two properties combined together are unique. I cannot use a composite-id for this as the primary key is self generated.
I have noticed a tag called composite-element, but it says that I have to use components for it. I am not sure if I want to use that.
Basically from the main frame system, the B2B system gets a XML file pertaining to a order. Now the order may consist of multiple items and each item is associated with a line number. Now in the mapping for a item, I want to describe that item together with the order id form a composite unique property.
What should/can I use to acheive the above functionality? This might sound something primitive, but please note that I am a beginner and am not an expert in DBAdministration.
Thanks,
Alpha.
|