One of the column is of the type XMLTYPE in Oracle database. In my application, I want to persist the data and using Hibernate.
I did the following for mapping XMLTY
I solved this same problem, but mapped the XMLType column to java.lang.String in my entity, which simplified the solution.
I left a detailed, step-by-step solution as an answer to another question.
I faced a lots of problem using XMLType from java, I fixed this problem is a very simple way.
I changed the input data type from oracle DB side, from XMLtype to CLOB, then I easily pass CLOB and at the first line in the stored procedure; I built an XMLType from CLOB.
CLOB is very straight forward in java, just use it as String (statement.setString(1, string);
)