cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r719867 - in /cayenne/main/tags/3.0M5/cayenne/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne: access/types/ dba/derby/ dba/oracle/
Date Sat, 22 Nov 2008 15:42:34 GMT
Author: aadamchik
Date: Sat Nov 22 07:42:34 2008
New Revision: 719867

URL: http://svn.apache.org/viewvc?rev=719867&view=rev
Log:
removing special implementations of UUIDType; changed the default to save UUID as String

Removed:
    cayenne/main/tags/3.0M5/cayenne/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/dba/derby/DerbyUUIDType.java
    cayenne/main/tags/3.0M5/cayenne/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/dba/oracle/OracleUUIDType.java
Modified:
    cayenne/main/tags/3.0M5/cayenne/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/access/types/UUIDType.java
    cayenne/main/tags/3.0M5/cayenne/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/dba/derby/DerbyAdapter.java
    cayenne/main/tags/3.0M5/cayenne/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/dba/oracle/OracleAdapter.java

Modified: cayenne/main/tags/3.0M5/cayenne/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/access/types/UUIDType.java
URL: http://svn.apache.org/viewvc/cayenne/main/tags/3.0M5/cayenne/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/access/types/UUIDType.java?rev=719867&r1=719866&r2=719867&view=diff
==============================================================================
--- cayenne/main/tags/3.0M5/cayenne/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/access/types/UUIDType.java
(original)
+++ cayenne/main/tags/3.0M5/cayenne/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/access/types/UUIDType.java
Sat Nov 22 07:42:34 2008
@@ -79,7 +79,7 @@
             statement.setNull(pos, type);
         }
         else if (value instanceof UUID) {
-            statement.setObject(pos, value, type);
+            statement.setObject(pos, value.toString(), type);
         }
         else {
             throw new IllegalArgumentException("Expected java.util.UUID, got "

Modified: cayenne/main/tags/3.0M5/cayenne/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/dba/derby/DerbyAdapter.java
URL: http://svn.apache.org/viewvc/cayenne/main/tags/3.0M5/cayenne/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/dba/derby/DerbyAdapter.java?rev=719867&r1=719866&r2=719867&view=diff
==============================================================================
--- cayenne/main/tags/3.0M5/cayenne/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/dba/derby/DerbyAdapter.java
(original)
+++ cayenne/main/tags/3.0M5/cayenne/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/dba/derby/DerbyAdapter.java
Sat Nov 22 07:42:34 2008
@@ -86,7 +86,6 @@
         // address Derby driver inability to handle java.lang.Short and java.lang.Byte
         map.registerType(new ShortType(true));
         map.registerType(new ByteType(true));
-        map.registerType(new DerbyUUIDType());
     }
 
     /**

Modified: cayenne/main/tags/3.0M5/cayenne/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/dba/oracle/OracleAdapter.java
URL: http://svn.apache.org/viewvc/cayenne/main/tags/3.0M5/cayenne/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/dba/oracle/OracleAdapter.java?rev=719867&r1=719866&r2=719867&view=diff
==============================================================================
--- cayenne/main/tags/3.0M5/cayenne/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/dba/oracle/OracleAdapter.java
(original)
+++ cayenne/main/tags/3.0M5/cayenne/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/dba/oracle/OracleAdapter.java
Sat Nov 22 07:42:34 2008
@@ -220,7 +220,6 @@
         map.registerType(new OracleDoubleType());
 
         map.registerType(new OracleBooleanType());
-        map.registerType(new OracleUUIDType());
     }
 
     /**



Mime
View raw message