This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes EJB and other Java EE Technologies and the fly likes Saving XML data to database without entity classes. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Saving XML data to database without entity classes." Watch "Saving XML data to database without entity classes." New topic
Author

Saving XML data to database without entity classes.

Himanhsu Yadav
Ranch Hand

Joined: Sep 26, 2007
Posts: 33
I want to save XML document values into database. I am using Hibernate 3 with SQL Server Database in my application.
There are multiple issue:
1. Firstly I am trying to escape from marshaling XML to Java classes. Reason being that these XML can change frequently.
2. If I have to create Java entities then at least I don't to create respective hbm files.

Please help.
William P O'Sullivan
Ranch Hand

Joined: Mar 28, 2012
Posts: 859

Whoa Cowboy!

Reason being that these XML can change frequently

Doesn't that imply that your underlying DB structure would change "frequently" also?

I don't to create respective hbm files

Who uses those anymore? Annotations are the way to go.

I know DB2 does, not sure about M$ SQL Server, but you might want to look into native XML support
embedded or provided by the database provider itself.

WP
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Saving XML data to database without entity classes.