[ 
https://issues.apache.org/jira/browse/JDO-652?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16785906#comment-16785906
 ] 

Michael Bouschen commented on JDO-652:
--------------------------------------

@[~andy]:

The tck class SampleQueries include all the sample queries from chapter "14.10 
Examples" of the spec.

I started to implement a JDOQLTypedQuery version of all the sample queries. But 
I ran into issues for three queries:

testQuery15f and testQuery16f both fail with the message "Cannot call 
executeResultList method when query has result unset. Call executeList 
instead.". Both queries try to store the result into a warpper class, but I hve 
no idea how to specify this with an JDOQLTypedQuery. 

testQuery19f uses a correlated subquery and I think we need an API extension 
for this, see JDO-778.

Please take a look at branch JDO-652 on github to see my current version of 
class SampleQueries. Here the link: 
https://github.com/apache/db-jdo/blob/JDO-652/tck/src/main/java/org/apache/jdo/tck/query/api/SampleQueries.java

> Provision of a typesafe refactor-friendly query capability for JDOQL
> --------------------------------------------------------------------
>
>                 Key: JDO-652
>                 URL: https://issues.apache.org/jira/browse/JDO-652
>             Project: JDO
>          Issue Type: New Feature
>          Components: api, specification, tck
>            Reporter: Andy Jefferson
>            Assignee: Michael Bouschen
>            Priority: Major
>             Fix For: JDO 3.2
>
>         Attachments: JDO-652-api-ifTheElse.txt, JDO-652-api-patch-Andy.txt, 
> JDO-652-patch4.txt, typesafe.patch, typesafe_manifest.patch
>
>
> There are various querying capabilities of this type around. JPA2 has its 
> Criteria query API. Third party solutions like QueryDSL also exist, in its 
> case providing a JDOQL implementation (as well as JPQL, and HQL). We should 
> seriously consider introducing something along these lines in the JDO2.4 
> timeframe. 
> There is a comparison of JPA Criteria with QueryDSL over at 
> http://source.mysema.com/forum/mvnforum/viewthread_thread,49



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to