cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r823447 - in /cayenne/main/trunk: docs/doc/src/main/resources/RELEASE-NOTES.txt framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/access/dbsync/CreateIfNoSchemaStrategy.java
Date Fri, 09 Oct 2009 08:08:23 GMT
Author: aadamchik
Date: Fri Oct  9 08:08:23 2009
New Revision: 823447

URL: http://svn.apache.org/viewvc?rev=823447&view=rev
Log:
CAY-1276 CreateIfNoSchemaStrategy create no PK support

Modified:
    cayenne/main/trunk/docs/doc/src/main/resources/RELEASE-NOTES.txt
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/access/dbsync/CreateIfNoSchemaStrategy.java

Modified: cayenne/main/trunk/docs/doc/src/main/resources/RELEASE-NOTES.txt
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/docs/doc/src/main/resources/RELEASE-NOTES.txt?rev=823447&r1=823446&r2=823447&view=diff
==============================================================================
--- cayenne/main/trunk/docs/doc/src/main/resources/RELEASE-NOTES.txt (original)
+++ cayenne/main/trunk/docs/doc/src/main/resources/RELEASE-NOTES.txt Fri Oct  9 08:08:23 2009
@@ -30,6 +30,7 @@
 CAY-1268 Implement 'setStatementFetchSize' for RelationshipQuery
 CAY-1270 Merge primary key changes
 CAY-1273 Replace DefaultType with dedicated types
+CAY-1276 CreateIfNoSchemaStrategy create no PK support
 CAY-1281 Lifecycle callbacks reorganization
 
 Bug Fixes Since M6:

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/access/dbsync/CreateIfNoSchemaStrategy.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/access/dbsync/CreateIfNoSchemaStrategy.java?rev=823447&r1=823446&r2=823447&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/access/dbsync/CreateIfNoSchemaStrategy.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/access/dbsync/CreateIfNoSchemaStrategy.java
Fri Oct  9 08:08:23 2009
@@ -71,8 +71,8 @@
             DbGenerator gen = new DbGenerator(dataNode.getAdapter(), iterator.next());
             gen.setShouldCreateTables(true);
             gen.setShouldDropTables(false);
-            gen.setShouldCreateFKConstraints(false);
-            gen.setShouldCreatePKSupport(false);
+            gen.setShouldCreateFKConstraints(true);
+            gen.setShouldCreatePKSupport(true);
             gen.setShouldDropPKSupport(false);
             try {
                 gen.runGenerator(dataNode.getDataSource());



Mime
View raw message