db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andy Jefferson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (JDO-652) Provision of a typesafe refactor-friendly query capability for JDOQL
Date Mon, 11 Apr 2011 15:08:05 GMT

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

Andy Jefferson commented on JDO-652:
------------------------------------

Re: Adding methods to PMF to define the query
No problem with that (as mentioned before on the jdo-dev list some time ago). 


Re: Calling things XXXCriteria
-1. This is a query, just like one formed from a single-string, or declarative API, in a form
that can be executed. There is nothing in the dictionary definition of "criteria" that means
it is somehow more suitable for this type of query. The difference to a single-string query,
or a query generated by the declarative API is that is typesafe and refactorable. All queries
(whether single-string,declarative, or via this API) have "criteria". Just because some other
API calls its API "Criteria" is not a reason in itself, and could be argued a reason not to,
to avoid possible confusion.


Re: putting methods on the PM
Are you planning on doing that for a normal Query too? because they have no inherent need
to be created from a PM either. Consistency please.

> 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
>             Fix For: JDO 3 maintenance release 1
>
>         Attachments: 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 is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message