-->
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.  [ 2 posts ] 
Author Message
 Post subject: Transforming a Hibernate generated object graph to XML
PostPosted: Sun Jul 24, 2005 11:07 am 
Newbie

Joined: Sat Jan 29, 2005 7:09 am
Posts: 11
Hi - does anyone know of a generic method of converting an object graph generated by Hibernate to XML?

I am thinking along the lines of creating an XMLReader that uses reflection to discover bean properties and Hibernate.isPropertyInitialized(object,propertyName) to ensure that it doesn't try to drill down into uninitialised proxies/collections.

Has anyone tried something similar, or know of a more efficient way of extracting the data as XML?

I guess it would also be nice to be able to do the opposite, i.e. convert the XML back into objects - though this isn't something I need to do just yet.

Thanks,

Doug.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 24, 2005 12:47 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Check the reference documentation, EntityMode.DOM4J.


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

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.