Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-1999

Optional support for non-sequential positional parameters

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

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.

      Attachments

        1. OPENJPA-1999.patch
          16 kB
          Richard G. Curtis

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            curtisr7 Richard G. Curtis
            dblevins David Blevins
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment