I'm exploring outputting hibernate objects as XML. From what I understand this is experimental in version 3.
The problem I have is that it doesn't seem that key-property and key-many-to-one hibernate mapping elements don't contain the XML mapping attributes to enable me to output composite keys as XML elements. However; the composite-id element does contain a "node" attribute but how do I use it?
For example
Code:
<class name="person" table="person_table" node="person">
<composite-id node="???">
<key-property column="DOB" name="dateofbirth" type="timestamp"/>
<key-many-to-one name="lecture" class="lecture">
<column name="id"/>
<column name="section"/>
</key-many-to-one/>
</class>
</class>