We are using hibernate to load data from oracle database. I need to load the data from one of the tables and then store selected data from this table as an xml file in another table. It would be great if someone could suggest, what would be the best way to achieve this functionality?
Take a look at this question which discusses libraries (such as JAXB and XStream) you can use to convert Java objects to XML.
What is the best way to convert a java object to xml with open source apis