• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

Map XML data to domain entity POJOs

 
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Guys found JiBX by googling. Does any hone has experience with this tool or any other similar products
 
ranger
Posts: 17346
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 17346
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 !
 
Ranch Hand
Posts: 553
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic