Uploaded image for project: 'Olingo'
  1. Olingo
  2. OLINGO-1228

JPA Parameterization issue

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • odata2-jpa
    • None

    Description

      Put request with two parameters failing for JPA

      http://localhost:8081/RFQ/Appointments(RequestForQuotationGuid='7f260ade-65e0-471a-b2ce-75e1b745bd54',AppointmentId=3)

       With the below exception:

      <innererror>java.lang.IllegalArgumentException:An exception occurred while creating a query in EntityManager:

      Exception Description: Error compiling the query [SELECT E1 FROM Appointment E1 WHERE E1.requestForQuotationGuid LIKE ?1 ESCAPE '\' AND E1.appointmentId = ?1], line 1, column 105: invalid multiple use of parameter [1] assuming different parameter types [java.lang.String] and [java.lang.Integer]

      Parameter 1 in SQL is also used for the second value.

      Attachments

        Activity

          People

            Unassigned Unassigned
            archanarai Archana Rai
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: