-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Hibernate Object XML Output With Composite Keys
PostPosted: Fri Nov 13, 2009 12:39 pm 
Newbie

Joined: Fri Nov 13, 2009 12:30 pm
Posts: 1
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>


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.