Hi,
I have composite-id with two key-properties, which are generated by a sequence. So I need something like this:
Code:
<composite-id>
<key-property name="id1">
<column name="ID1"></column>
<generator class="org.hibernate.id.SequenceGenerator">
<param name="sequence">sequenceId1</param>
</generator>
</key-property>
<key-property name="id2">
<column name="ID2"></column>
<generator class="org.hibernate.id.SequenceGenerator">
<param name="sequence">sequenceId2</param>
</generator>
</key-property>
</composite-id>
This is not accepted by the schema. The element <composite-id> accepts one sub-element <generator>. However how can I use this with two or more key-properties to be generated?
Thanks for hints
Thomas