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

MethodQL parameter passing broken

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2.0
    • 2.0.0-M1, 2.0.0-M2
    • kernel
    • None

    Description

      OpenJPAEntityManager oem = OpenJPAPersistence.cast(em);
      OpenJPAQuery query = oem.createQuery("openjpa.MethodQL", "de.logentis.openjpa.LogentisMethodQL.blabla");
      query.setResultClass(DP_PLZ_DA.class);
      query.setParameter(1, "Fred").setParameter(2, "Lucas");

      This results of an empty parameter Map in the LogentisMethodQL.blabla() method.

      Even worse, when doing parameter passing as stated in the docs Chapter 9 / 5:

      query.setParameter("first", "Fred").setParameter("last", "Lucas");

      There is an exception thrown.

      In fact MethodQL is completely broken when it comes to parameters at this point.

      Attachments

        Activity

          People

            mikedd Michael Dick
            logemann Marc Logemann
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: