db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m..@apache.org
Subject svn commit: r383191 - /db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/query/result/ResultExpressions.java
Date Sat, 04 Mar 2006 19:51:18 GMT
Author: mbo
Date: Sat Mar  4 11:51:17 2006
New Revision: 383191

URL: http://svn.apache.org/viewcvs?rev=383191&view=rev
Log:
JDO-320: Add negative query test for projecting a map and collection field to tck20

Modified:
    db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/query/result/ResultExpressions.java

Modified: db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/query/result/ResultExpressions.java
URL: http://svn.apache.org/viewcvs/db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/query/result/ResultExpressions.java?rev=383191&r1=383190&r2=383191&view=diff
==============================================================================
--- db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/query/result/ResultExpressions.java (original)
+++ db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/query/result/ResultExpressions.java Sat
Mar  4 11:51:17 2006
@@ -20,6 +20,7 @@
 
 import org.apache.jdo.tck.JDO_Test;
 import org.apache.jdo.tck.pc.company.CompanyModelReader;
+import org.apache.jdo.tck.pc.company.Department;
 import org.apache.jdo.tck.pc.company.Employee;
 import org.apache.jdo.tck.pc.company.Person;
 import org.apache.jdo.tck.query.QueryElementHolder;
@@ -345,6 +346,36 @@
         new QueryElementHolder(
         /*UNIQUE*/      null,
         /*RESULT*/      "salary",
+        /*INTO*/        null, 
+        /*FROM*/        Employee.class,
+        /*EXCLUDE*/     null,
+        /*WHERE*/       null,
+        /*VARIABLES*/   null,
+        /*PARAMETERS*/  null,
+        /*IMPORTS*/     null,
+        /*GROUP BY*/    null,
+        /*ORDER BY*/    null,
+        /*FROM*/        null,
+        /*TO*/          null),
+        // project collection field
+        new QueryElementHolder(
+        /*UNIQUE*/      null,
+        /*RESULT*/      "employees",
+        /*INTO*/        null, 
+        /*FROM*/        Department.class,
+        /*EXCLUDE*/     null,
+        /*WHERE*/       null,
+        /*VARIABLES*/   null,
+        /*PARAMETERS*/  null,
+        /*IMPORTS*/     null,
+        /*GROUP BY*/    null,
+        /*ORDER BY*/    null,
+        /*FROM*/        null,
+        /*TO*/          null),
+        // project map field
+        new QueryElementHolder(
+        /*UNIQUE*/      null,
+        /*RESULT*/      "phoneNumbers",
         /*INTO*/        null, 
         /*FROM*/        Employee.class,
         /*EXCLUDE*/     null,



Mime
View raw message