-->
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: How to convert query results to an xml string
PostPosted: Mon Oct 25, 2010 10:22 am 
Newbie

Joined: Mon Oct 25, 2010 10:17 am
Posts: 1
Hi All,
I've the following requirement.

Generally session.createCriteria(Employee.class).list() will return me the list of Objects. Similarly I would like to have an xml string as the result. Can you please let me know the best solution to acheive this instead of iterating the list to form the xml.

Any help highly appreciated.

Thanks in advance
Venky


Top
 Profile  
 
 Post subject: Re: How to convert query results to an xml string
PostPosted: Mon Oct 25, 2010 10:49 am 
Senior
Senior

Joined: Fri Oct 08, 2010 8:44 am
Posts: 130
Use JAXB or XMLEncoder. Both are included into standard Java bundle. And stop asking non-hibernate questions in hibernate forum :)


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.