This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes @Entity to XML Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Reply Bookmark "@Entity to XML" Watch "@Entity to XML" New topic
Author

@Entity to XML

Srdjan Atanaskovic
Greenhorn

Joined: Mar 29, 2007
Posts: 3
Hi

I have entity beans.
Now I need to make XML from collection of entity beans.
Is there any way to perform this easily? (I would use JAXB 2.0, but if I use JAXB I will have another set of data
objects that represent the xml, but I
already have this object hierarchy in my entity beans)
Can there be a direct transformation from entity beans to a jaxb / xml hierarchy?
Mike Keith
author
Ranch Hand

Joined: Jul 14, 2005
Posts: 304
There is a way. Take a look at the EclipseLink runtime project that supports mapping JPA entities to XML using JAXB (and additional APIs as well).

http://www.eclipse.org/eclipselink


-Mike
Pro JPA 2: Mastering the Java Persistence API
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: @Entity to XML
 
Similar Threads
JAXB Parsing error: The entity name must immediately follow the '&' in the entity reference
how to identify the type of incoming object when using wsdl extracted code? - very urgent
JAX-WS - domain model
Webservices and the Timestamp class
without xml schema, generate java classes from xml data file ?