cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r1563602 - in /cayenne/main/branches/STABLE-3.1/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/dba: oracle/OraclePkGenerator.java postgres/PostgresPkGenerator.java
Date Sun, 02 Feb 2014 12:50:41 GMT
Author: aadamchik
Date: Sun Feb  2 12:50:41 2014
New Revision: 1563602

URL: http://svn.apache.org/r1563602
Log:
Start value is ignored in sequence based PK generators

Modified:
    cayenne/main/branches/STABLE-3.1/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/dba/oracle/OraclePkGenerator.java
    cayenne/main/branches/STABLE-3.1/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/dba/postgres/PostgresPkGenerator.java

Modified: cayenne/main/branches/STABLE-3.1/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/dba/oracle/OraclePkGenerator.java
URL: http://svn.apache.org/viewvc/cayenne/main/branches/STABLE-3.1/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/dba/oracle/OraclePkGenerator.java?rev=1563602&r1=1563601&r2=1563602&view=diff
==============================================================================
--- cayenne/main/branches/STABLE-3.1/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/dba/oracle/OraclePkGenerator.java
(original)
+++ cayenne/main/branches/STABLE-3.1/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/dba/oracle/OraclePkGenerator.java
Sun Feb  2 12:50:41 2014
@@ -129,7 +129,8 @@ public class OraclePkGenerator extends J
         buf
                 .append("CREATE SEQUENCE ")
                 .append(sequenceName(ent))
-                .append(" START WITH 200")
+                .append(" START WITH ")
+                .append(pkStartValue)
                 .append(" INCREMENT BY ")
                 .append(pkCacheSize(ent));
         return buf.toString();

Modified: cayenne/main/branches/STABLE-3.1/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/dba/postgres/PostgresPkGenerator.java
URL: http://svn.apache.org/viewvc/cayenne/main/branches/STABLE-3.1/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/dba/postgres/PostgresPkGenerator.java?rev=1563602&r1=1563601&r2=1563602&view=diff
==============================================================================
--- cayenne/main/branches/STABLE-3.1/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/dba/postgres/PostgresPkGenerator.java
(original)
+++ cayenne/main/branches/STABLE-3.1/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/dba/postgres/PostgresPkGenerator.java
Sun Feb  2 12:50:41 2014
@@ -55,7 +55,8 @@ public class PostgresPkGenerator extends
                 .append(sequenceName(ent))
                 .append(" INCREMENT ")
                 .append(pkCacheSize(ent))
-                .append(" START 200");
+                .append(" START ")
+                .append(pkStartValue);
         return buf.toString();
     }
 



Mime
View raw message