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

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1032646 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Dick 2010-11-08 17:33:41 +00:00
parent 0175a1a2e5
commit 3c52abb73d
2 changed files with 4 additions and 0 deletions

View File

@ -468,6 +468,7 @@ public class Table
copy.setSize(col.getSize());
copy.setDecimalDigits(col.getDecimalDigits());
copy.setAutoAssigned(col.isAutoAssigned());
copy.setXML(col.isXML());
return copy;
}

View File

@ -732,6 +732,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;
}