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

Map XML data to domain entity POJOs

 
Raees Uzhunnan
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We are looking for a too that will map XML data to domain entity POJOs ( designed based on relational model ). We are looking for tool(s) that will do this job; performance is our concern; Please provide all your inputs ; we want to make this decision fast

Note: Hibernate is out backend/persistence layer

Thanks
Raees
 
Raees Uzhunnan
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guys found JiBX by googling. Does any hone has experience with this tool or any other similar products
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually Hibernate can do it too, and so can JAXB. I suggest JAXB, you can have both Hibernate and JAXB annotations on your Entity classes.

Mark
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please proper case your display name. It is kind of loud as all CAPS.

Thanks

Mark
 
Raees Uzhunnan
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess you are not understanding!!

hibernate can save/retrieve POJOS ; it can't map xml data to POJOs.

As with JAXB; yes it can bind xml data to the specific classes generated from the schema; but not to the classes that are my domain models

Now you might say why don't you assign from one to the other; which is old school ; what I want it to specify a mapping from the xml tags to my class properties and map it at runtime !
 
James Sutherland
Ranch Hand
Posts: 553
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are JAXB implementations that support mapping XML to an existing object model, I believe that JAXB 2.0 requires this.

For example the EclipseLink (incubation) MOXy JAXB implementation allows this. Oracle TopLink also allows this through JAXB.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic