Description
I propose to add the following overloaded subquery methods to support correlated subqueries using a relationship field of the from clause of the subquery, e.g.
select firstname from org.apache.jdo.tck.pc.company.Employee
where this.weeklyhours >
(select AVG(e.weeklyhours) from this.department.employees e where e.manager == this.manager)
<E> JDOQLTypedSubquery<E> subquery(CollectionExpression<Collection<E>, E> candidateCollection, String candidateAlias);
<E> JDOQLTypedSubquery<E> subquery(ListExpression<List<E>, E> candidateList, String candidateAlias);
<K, V> JDOQLTypedSubquery<Map.Entry<K, V>> subquery(MapExpression<Map<K, V>, K, V> candidateMap, String candidateAlias);
Attachments
Issue Links
- relates to
-
JDO-652 Provision of a typesafe refactor-friendly query capability for JDOQL
- Closed
- links to