OPENJPA-1877: Detect XMLType column for Oracle and treat as XML.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.0.x@1032678 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Dick 2010-11-08 19:45:56 +00:00
parent 05b6589acb
commit 70ef86b4cd
2 changed files with 4 additions and 0 deletions

View File

@ -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;
}

View File

@ -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;
}