Hibernat 3.x provides an XML persistence and query service for a relational database. But, the XML document structure does not get store.
Use an embedded database such as xindice.
http://www.onjava.com/pub/a/onjava/2006/03/08/storing-xml-document-with-apache-xindice.html
When databases implement the JDBC 4.0 driver and provide the 'XML' type SQL data type, JDBC 4.0 would be the most suitable for storing and retrieving XML from a database.
The idea of my college was that we should change everything to Hibernate. He was a latecomer to the project, that is why he was giving this hints. Basically what he wanted was us to use entity java beans, anotations and hibernate (JPA), and according to hm everybody in the java world is now using this. I rather prefer to have old fashion views and stored procedures, but he says its better to use hibernate than JDBC. I see no reason to use it... What don you guys do?
Many thanks,
MeTitus
better to use hibernate than JDBC
For XML?
Refer
http://www.hibernate.org/hib_docs/v3/reference/en/html/xml.html
Refer Mapping with EJB3/JPA Annotations
http://www.hibernate.org/hib_docs/annotations/reference/en/html/entity.html
http://www.onjava.com/pub/a/onjava/2006/05/17/standardizing-with-ejb3-java-persistence-api.html