Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

@Entity to XML

 
Srdjan Atanaskovic
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 304
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic