-->
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.  [ 16 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: Mon Jan 15, 2007 1:17 pm 
Newbie

Joined: Wed Dec 01, 2004 12:27 pm
Posts: 11
What I mean is that if I don't use Annotations and instead write .hbm.xml files, the EntityMode.DOM4J deserialization is correct : parent collection is crawled, and each child id/property is shown in the resulting XML (following "embed-xml" or "node" mapping attributes).

I agree @Node or @EmbedXml annotations do not exist yet, still I was hoping that the deserialization would work using the "default" hbm.xml node behaviour : that is, if <property name="bar" node="@bar"/> is present it will deserialize as <bean bar="xxx"/>, and if not, it will deserialize as <bean><bar>xxx</bar></bean>, but using Annotations it's only deserializing as <bean>beanIdentifier</bean>, rest is lost.

Unfortunately I don't have time nor resources to dig into the tuplizer and fix that :-( so I'll use something like Castor and skip the whole XML export functions of Hibernate.

thanks anyway


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 16 posts ]  Go to page Previous  1, 2

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.