title: OpenJpa2.0 How to map Oracle sys.XMLTYPE column to String
body: <p>I changed Change in persistence.xml 
  I also changed column definition (columnDefinition="XDB.XMLType") for xml fields</p>
  
  <p>I checked OpenJpa(<a href="http://openjpa.208410.n2.nabble.com/Oracle-XMLType-fetch-problems-td6208344.html" rel="nofollow">http://openjpa.208410.n2.nabble.com/Oracle-XMLType-fetch-problems-td6208344.html</a>) site and IBM (<a href="http://www.ibm.com/support/knowledgecenter/SS7J6S_7.5.0/com.ibm.wsadapters.jca.jdbc.doc/env/doc/rjdb_problemsolutions.html" rel="nofollow">http://www.ibm.com/support/knowledgecenter/SS7J6S_7.5.0/com.ibm.wsadapters.jca.jdbc.doc/env/doc/rjdb_problemsolutions.html</a>)</p>
  
  <p>My env is OpenJpa 2.0 and WAS 7</p>
  
  <p>its throwing exception
   org.apache.openjpa.persistence.PersistenceException: ORA-06502: PL/SQL: numeric or value error: character string buffer too small 
       ORA-06512: at "SYS.XMLTYPE", line 169</p>
  
  <p>Please suggest without changing OpenJpa2.0 as its part of IBM WebSphere Application Server V7.0 how can i handle sys.XMLTYPE data, i am migrating my application from db2 to Oracle in same environment.</p>