OpenJPA
  1. OpenJPA
  2. OPENJPA-1999

Optional support for non-sequential positional parameters

    Details

      Description

      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.

        Issue Links

          Activity

          David Blevins created issue -
          David Blevins made changes -
          Field Original Value New Value
          Link This issue relates to OPENJPA-1992 [ OPENJPA-1992 ]
          Rick Curtis made changes -
          Attachment OPENJPA-1999.patch [ 12480540 ]
          Rick Curtis made changes -
          Assignee Rick Curtis [ curtisr7 ]
          Rick Curtis made changes -
          Fix Version/s 2.2.0 [ 12315910 ]
          Michael Dick made changes -
          Fix Version/s 2.1.1 [ 12316191 ]
          Rick Curtis made changes -
          Link This issue relates to OPENJPA-2029 [ OPENJPA-2029 ]
          Rick Curtis made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Albert Lee made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              Rick Curtis
              Reporter:
              David Blevins
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development