You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jdo-dev@db.apache.org by "Michael Bouschen (JIRA)" <ji...@apache.org> on 2018/10/04 19:55:00 UTC

[jira] [Commented] (JDO-652) Provision of a typesafe refactor-friendly query capability for JDOQL

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

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

Added a new patch Patch JDO-652-patch4.txt reflecting the current state of testing JDOQLTypedQuery instances. It includes the API changes that are part of JDO-652-api-ifTheElse.txt.

Andy: what do you think about the API changes? 
In the interface IfThenElseExpression I used the method names "ifThen" and "elseEnd" instead of "when" and "otherwise", because I think they better match the builder method names in JDOQLTypedQuery. But if everybody else thinks "when" and "otherwise" are the better choice I'm open to change that. I also changed NumericExpression in order to solve my compilation problem with ifThenElse expression.

 

> 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)