db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m..@apache.org
Subject [db-jdo] 02/02: JDO-652: method testQuery19f in comments
Date Wed, 24 Apr 2019 18:20:39 GMT
This is an automated email from the ASF dual-hosted git repository.

mbo pushed a commit to branch JDO-652
in repository https://gitbox.apache.org/repos/asf/db-jdo.git

commit 4862e49dc466ae9921ac52ba7c98596de7f4a286
Author: Michael Bouschen <mbo@apache.org>
AuthorDate: Wed Apr 24 20:18:42 2019 +0200

    JDO-652: method testQuery19f in comments
---
 tck/src/main/java/org/apache/jdo/tck/query/api/SampleQueries.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tck/src/main/java/org/apache/jdo/tck/query/api/SampleQueries.java b/tck/src/main/java/org/apache/jdo/tck/query/api/SampleQueries.java
index fe3071e..2d8c29f 100644
--- a/tck/src/main/java/org/apache/jdo/tck/query/api/SampleQueries.java
+++ b/tck/src/main/java/org/apache/jdo/tck/query/api/SampleQueries.java
@@ -2816,6 +2816,7 @@ public class SampleQueries extends QueryTest {
      * subquery is the collection of employees in the department of the candidate employee
      * and the parameter passed to the subquery is the manager of the candidate employee.
      */
+    /* subquery method not yet implemented by datanucleus
     public void testQuery19f() {
         Transaction tx = pm.currentTransaction();
         try {
@@ -2824,7 +2825,7 @@ public class SampleQueries extends QueryTest {
             try (JDOQLTypedQuery<Employee> q = pm.newJDOQLTypedQuery(Employee.class))
{
                 QEmployee cand = QEmployee.candidate();
                 q.result(false, cand.firstname);
-                JDOQLTypedSubquery<Employee> subquery = q.subquery("e");
+                JDOQLTypedSubquery<Employee> subquery = q.subquery(cand.department.employees,
"e");
                 QEmployee candsub = QEmployee.candidate("e");
                 subquery.filter(candsub.manager.eq(cand.manager));
                 q.filter(cand.weeklyhours.gt(subquery.selectUnique(candsub.weeklyhours.avg())));
@@ -2840,6 +2841,7 @@ public class SampleQueries extends QueryTest {
             }
         }
     }
+    */
 
     /**
      * Deleting Multiple Instances.


Mime
View raw message