diff --git a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Table.java b/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Table.java index ecf913d9b..eaf28f2a8 100644 --- a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Table.java +++ b/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Table.java @@ -465,6 +465,7 @@ public class Table copy.setSize(col.getSize()); copy.setDecimalDigits(col.getDecimalDigits()); copy.setAutoAssigned(col.isAutoAssigned()); + copy.setXML(col.isXML()); return copy; } diff --git a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/OracleDictionary.java b/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/OracleDictionary.java index 53ab8bbec..67e8860e9 100644 --- a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/OracleDictionary.java +++ b/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/OracleDictionary.java @@ -684,6 +684,9 @@ public class OracleDictionary cols[i].setType(Types.VARCHAR); else if ("NCHAR".equalsIgnoreCase(typeName)) cols[i].setType(Types.CHAR); + else if ("XMLTYPE".equalsIgnoreCase(typeName)) { + cols[i].setXML(true); + } } return cols; }