mirror of
https://github.com/apache/openjpa.git
synced 2025-03-07 00:49:39 +00:00
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:
parent
0175a1a2e5
commit
3c52abb73d
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user