Thanks for the reply Gavin. But I am still not clear on this. Using the syntax you suggested below, isn't there TWO interpretations of how to set up constraints? How does Hibernate know from this whether I want two, seperate, disjoint unique key constraints OR whether I want a single composite key containing the first column as the primary and the second column as the secondary key? Of course those are completely different kinds of constraints - I know I can get disjoint keys set up without using a component but I am still not clear on how to get a composite key set up....
gavin wrote:
Code:
<component ....>
<property .... >
<column ... unique-key="ukname"/>
</property>
<property .... >
<column ... unique-key="ukname"/>
</property>
</component>