cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r996582 - /cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/dba/db2/DB2Adapter.java
Date Mon, 13 Sep 2010 15:49:28 GMT
Author: oltka
Date: Mon Sep 13 15:49:27 2010
New Revision: 996582

URL: http://svn.apache.org/viewvc?rev=996582&view=rev
Log:
CAY-1456 Investigate auto-increment columns on DB2 and switch the adapter policy to support
them

Modified:
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/dba/db2/DB2Adapter.java

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/dba/db2/DB2Adapter.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/dba/db2/DB2Adapter.java?rev=996582&r1=996581&r2=996582&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/dba/db2/DB2Adapter.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/dba/db2/DB2Adapter.java
Mon Sep 13 15:49:27 2010
@@ -55,6 +55,10 @@ import org.apache.cayenne.merge.MergerFa
  */
 public class DB2Adapter extends JdbcAdapter {
 
+    public DB2Adapter() {
+        setSupportsGeneratedKeys(true);
+    }
+    
     /**
      * Creates a DB2 specific PK Generator.
      */



Mime
View raw message