From dev-return-19194-apmail-openjpa-dev-archive=openjpa.apache.org@openjpa.apache.org Tue Jun 14 15:32:10 2011 Return-Path: X-Original-To: apmail-openjpa-dev-archive@www.apache.org Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9E06B6FB8 for ; Tue, 14 Jun 2011 15:32:10 +0000 (UTC) Received: (qmail 38737 invoked by uid 500); 14 Jun 2011 15:32:10 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 38708 invoked by uid 500); 14 Jun 2011 15:32:10 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 38700 invoked by uid 99); 14 Jun 2011 15:32:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Jun 2011 15:32:10 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Jun 2011 15:32:08 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 47AC0416213 for ; Tue, 14 Jun 2011 15:31:47 +0000 (UTC) Date: Tue, 14 Jun 2011 15:31:47 +0000 (UTC) From: "Pinaki Poddar (JIRA)" To: dev@openjpa.apache.org Message-ID: <1602228027.2981.1308065507273.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <89453010.10630.1305306887429.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (OPENJPA-1999) Optional support for non-sequential positional parameters 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/OPENJPA-1999?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13049237#comment-13049237 ] Pinaki Poddar commented on OPENJPA-1999: ---------------------------------------- The commit shows no tests with PreparedQuery. In a related thread, it had been discussed that a change of this nature *may* impact PreparedQuery. How about executing few of the queries with non-kosher binding parameter twice so that the second time the parameters get rebind? > Optional support for non-sequential positional parameters > --------------------------------------------------------- > > Key: OPENJPA-1999 > URL: https://issues.apache.org/jira/browse/OPENJPA-1999 > Project: OpenJPA > Issue Type: Improvement > Components: competitive, jpa, query, usability > Reporter: David Blevins > Assignee: Rick Curtis > Fix For: 2.2.0 > > Attachments: OPENJPA-1999.patch > > > Optional support for less strict following of positional parameters. e.g. > Query query = entityManager.createQuery("SELECT m from Movie as m WHERE m.title = ?2 AND m.year = ?4"); > query.setParameter(2, "Foo"); > query.setParameter(4, 2011); > return query.getResultList(); > Previous OpenJPA releases support this as do current EclipseLink and Hibernate versions. For the migration and upgrade scenarios and the development scenario -- can be a pain to have to always update positional parameters while tweaking queries -- this could make a compelling optional feature. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira