Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

hibernate XMLTYPE

  Asked By: Kuhaylah    Date: Jan 31    Category: Java    Views: 1615
  

my aim is to save .XML file in oracle table using hibernate.
my table has column of XMLTYPE , the .XML file must insert into that column.
can someone show me how to do it ? (pls if u have any working sample let me know about it)

Share: 

 

2 Answers Found

 
Answer #1    Answered By: Harold Graham     Answered On: Jan 31

You have to override dialect class for the database you are using to define hibernate  type and its mapping to a perticular database column  say XMLTYPE in your case.

 
Answer #2    Answered By: Giovanna Silva     Answered On: Jan 31

If you are not gonna use xpath and xquery, set the type of xml  field as CLOB or BLOB and
marshal and unmarshal it using JAXB.

 
Didn't find what you were looking for? Find more on hibernate XMLTYPE Or get search suggestion and latest updates.




Tagged: