Take the 2-minute tour ×  Is there any hibernate utility which
allows to persist xml values in database without marshaling it
into java classes?  share|improve this question possible
duplicate of JPA support for XML datatype columns –  Vash Jul 2
'12 at 16:33 add comment  2 Answers  No. While I can imagine
this is possible with Hibernate, it's the wrong tool for the
task. Hibernate was created specifically to map Entities to DB
rows.  You will either have to implement a DOM-like structure
which defines the entities which Hibernate should use or write
the importer using plain JDBC or maybe create some simple
entities which you fill from XML and then persist with
Hibernate.  share|improve this answer add comment  I think you
are using the wrong persistence library, maybe try using iBatis.
share|improve this answer add comment  Your Answer