cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r719840 - /cayenne/main/tags/3.0M5/cayenne/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/HorizontalInheritanceTest.java
Date Sat, 22 Nov 2008 12:42:59 GMT
Author: aadamchik
Date: Sat Nov 22 04:42:58 2008
New Revision: 719840

URL: http://svn.apache.org/viewvc?rev=719840&view=rev
Log:
fixing horizontal inheritance test for the release tag

Modified:
    cayenne/main/tags/3.0M5/cayenne/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/HorizontalInheritanceTest.java

Modified: cayenne/main/tags/3.0M5/cayenne/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/HorizontalInheritanceTest.java
URL: http://svn.apache.org/viewvc/cayenne/main/tags/3.0M5/cayenne/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/HorizontalInheritanceTest.java?rev=719840&r1=719839&r2=719840&view=diff
==============================================================================
--- cayenne/main/tags/3.0M5/cayenne/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/HorizontalInheritanceTest.java
(original)
+++ cayenne/main/tags/3.0M5/cayenne/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/HorizontalInheritanceTest.java
Sat Nov 22 04:42:58 2008
@@ -24,7 +24,6 @@
 import org.apache.cayenne.query.QueryChain;
 import org.apache.cayenne.query.SQLTemplate;
 import org.apache.cayenne.query.SelectQuery;
-import org.apache.cayenne.testdo.horizontalinherit.AbstractSuperEntity;
 import org.apache.cayenne.testdo.horizontalinherit.SubEntity1;
 import org.apache.cayenne.unit.InheritanceCase;
 
@@ -53,17 +52,17 @@
                 .addQuery(new SQLTemplate(
                         SubEntity1.class,
                         "INSERT INTO INHERITANCE_SUB_ENTITY2 "
-                                + "(ID, OVERRIDDEN_STRING_DB_ATTR, SUBENTITY_INT_DB_ATTR,
SUBENTITY_INT_DB_ATTR) "
-                                + "VALUES (1, 'VX11', 101, '201')"));
+                                + "(ID, OVERRIDDEN_STRING_DB_ATTR, SUPER_INT_DB_ATTR, SUBENTITY_INT_DB_ATTR)
"
+                                + "VALUES (1, 'VX11', 101, 201)"));
 
         createDataContext().performGenericQuery(inserts);
 
         SQLTemplate unionSql = new SQLTemplate(
                 SubEntity1.class,
-                "SELECT ID, SUBENTITY_STRING_DB_ATTR, SUPER_STRING_DB_ATTR, SUPER_INT_DB_ATTR,
NULL, 'INHERITANCE_SUB_ENTITY1'"
+                "SELECT ID, SUBENTITY_STRING_DB_ATTR, SUPER_STRING_DB_ATTR, SUPER_INT_DB_ATTR,
0, 'INHERITANCE_SUB_ENTITY1'"
                         + " FROM INHERITANCE_SUB_ENTITY1"
                         + " UNION ALL"
-                        + " SELECT ID, OVERRIDDEN_STRING_DB_ATTR, NULL, SUBENTITY_INT_DB_ATTR,
SUBENTITY_INT_DB_ATTR, 'INHERITANCE_SUB_ENTITY2'"
+                        + " SELECT ID, OVERRIDDEN_STRING_DB_ATTR, '', SUBENTITY_INT_DB_ATTR,
SUBENTITY_INT_DB_ATTR, 'INHERITANCE_SUB_ENTITY2'"
                         + " FROM INHERITANCE_SUB_ENTITY2");
 
         unionSql.setFetchingDataRows(true);



Mime
View raw message