-->
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: Map XML to POJO using hibernate mapping
PostPosted: Mon Nov 07, 2011 9:14 pm 
Newbie

Joined: Mon Nov 07, 2011 9:13 pm
Posts: 3
Could someone shed me some light whether this is currently doable or not?

I read these two articles and managed to save XML to database by defining the mapping in hbm.xml.

http://javaboutique.internet.com/tutorials/mapping/
http://docs.jboss.org/hibernate/core/3. ... l/xml.html

I am wondering whether I could reuse the same hbm.xml mapping file to map XML to my POJO without saving it to database first. Looking into Session definition

http://docs.jboss.org/hibernate/core/3. ... ssion.html

I tried the save/merge method but the returned object is not my object org.dom4j.tree.DefaultElement.

Any advice is much appreciated.

Thanks! Gerry


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.