mirror of https://github.com/apache/openjpa.git
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:
parent
05b6589acb
commit
70ef86b4cd
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue