File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Saving XML data to database without entity classes.

 
Himanhsu Yadav
Ranch Hand
Posts: 33
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 859
Chrome IBM DB2 Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic