openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Blevins (JIRA)" <j...@apache.org>
Subject [jira] [Created] (OPENJPA-1999) Optional support for non-sequential positional parameters
Date Fri, 13 May 2011 17:14:47 GMT
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


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

Mime
View raw message