You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Albert Lee (Closed) (JIRA)" <ji...@apache.org> on 2012/02/02 18:10:53 UTC

[jira] [Closed] (OPENJPA-1999) Optional support for non-sequential positional parameters

     [ https://issues.apache.org/jira/browse/OPENJPA-1999?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Albert Lee closed OPENJPA-1999.
-------------------------------


Close issue in preparation for 2.2.0 release.
                
> 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.1.1, 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.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira