openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mik...@apache.org
Subject svn commit: r1032678 - in /openjpa/branches/2.0.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc: schema/Table.java sql/OracleDictionary.java
Date Mon, 08 Nov 2010 19:45:57 GMT
Author: mikedd
Date: Mon Nov  8 19:45:56 2010
New Revision: 1032678

URL: http://svn.apache.org/viewvc?rev=1032678&view=rev
Log:
OPENJPA-1877: Detect XMLType column for Oracle and treat as XML.

Modified:
    openjpa/branches/2.0.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Table.java
    openjpa/branches/2.0.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/OracleDictionary.java

Modified: openjpa/branches/2.0.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Table.java
URL: http://svn.apache.org/viewvc/openjpa/branches/2.0.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Table.java?rev=1032678&r1=1032677&r2=1032678&view=diff
==============================================================================
--- openjpa/branches/2.0.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Table.java
(original)
+++ openjpa/branches/2.0.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Table.java
Mon Nov  8 19:45:56 2010
@@ -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;
     }
 

Modified: openjpa/branches/2.0.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/OracleDictionary.java
URL: http://svn.apache.org/viewvc/openjpa/branches/2.0.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/OracleDictionary.java?rev=1032678&r1=1032677&r2=1032678&view=diff
==============================================================================
--- openjpa/branches/2.0.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/OracleDictionary.java
(original)
+++ openjpa/branches/2.0.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/OracleDictionary.java
Mon Nov  8 19:45:56 2010
@@ -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;
     }



Mime
View raw message