I have a table with a composite id wherein one of the key-properties is itself a composite id of another table...
Can that be mapped??? I imagine it like so:
Code:
<composite-id
name="id"
class="SupplierAdditiveAssignmentModelKey"
>
<key-property
name="spotNumber"
type="java.lang.Long"
column="NBR_SPO"
/>
<key-property
name="logicalMeter"
type="java.lang.Long"
column="IDN_MTR_RCK_LOG"
/>
<key-many-to-one class="SupplierAdditiveModelKey">
<key-property
name="supplier"
column="NBR_BSA_SUP"/>
<key-property
name="additive"
column="NBR_ATV_REF"/>
By the way, I'm using Xdoclet.
RMC