Return-Path: Delivered-To: apmail-db-jdo-dev-archive@www.apache.org Received: (qmail 37159 invoked from network); 8 Nov 2010 14:32:03 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Nov 2010 14:32:03 -0000 Received: (qmail 43557 invoked by uid 500); 8 Nov 2010 14:32:33 -0000 Mailing-List: contact jdo-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jdo-dev@db.apache.org Delivered-To: mailing list jdo-dev@db.apache.org Received: (qmail 43548 invoked by uid 99); 8 Nov 2010 14:32:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Nov 2010 14:32:32 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Nov 2010 14:32:29 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oA8EW7NH020763 for ; Mon, 8 Nov 2010 14:32:08 GMT Message-ID: <20929768.74451289226727812.JavaMail.jira@thor> Date: Mon, 8 Nov 2010 09:32:07 -0500 (EST) From: "Andy Jefferson (JIRA)" To: jdo-dev@db.apache.org Subject: [jira] Commented: (JDO-652) Provision of a typesafe refactor-friendly query capability for JDOQL In-Reply-To: <8636188.18591271057620534.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JDO-652?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12929581#action_12929581 ] Andy Jefferson commented on JDO-652: ------------------------------------ Thx for your feedback Matthew. I actually updated DN SVN this morning with some changes for casting, and also the most recent blog entry examples to match. The casting isn't there now (at least on the examples I've worked through). The main things on this change are * use static method on Query class to get the candidate. * use static method on Query class to get variable of that type * use xxxParameter methods on TypesafeQuery to get the XXXExpression for the parameter (e.g stringParameter(paramName), doubleParameter(paramName). * multiple select() methods on TypesafeSubquery so we can get the correct XXXExpression there too. Step in the right direction at least > 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 > > > 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. - You can reply to this email to add a comment to the issue online.