aspose file tools*
The moose likes Object Relational Mapping and the fly likes Map XML data  to domain entity POJOs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Map XML data  to domain entity POJOs" Watch "Map XML data  to domain entity POJOs" New topic
Author

Map XML data to domain entity POJOs

Raees Uzhunnan
Ranch Hand

Joined: Aug 15, 2002
Posts: 126
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


Sun Certified Enterprise Architect
Java Technology Blog
Raees Uzhunnan
Ranch Hand

Joined: Aug 15, 2002
Posts: 126
Guys found JiBX by googling. Does any hone has experience with this tool or any other similar products
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

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


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

Please proper case your display name. It is kind of loud as all CAPS.

Thanks

Mark
Raees Uzhunnan
Ranch Hand

Joined: Aug 15, 2002
Posts: 126
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

Joined: Oct 01, 2007
Posts: 553
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.


TopLink : EclipseLink : Book:Java Persistence : Blog:Java Persistence Performance
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Map XML data to domain entity POJOs
 
Similar Threads
Architectural Evolution with Entity Beans
XMLPersistence Vs Entity Bean
CMP and DAO...
Anti-Pattern: Anemic Domain Model
Granularity for entities