You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Ramya (JIRA)" <ji...@apache.org> on 2019/08/02 05:32:00 UTC

[jira] [Commented] (OLINGO-1228) JPA Parameterization issue

    [ https://issues.apache.org/jira/browse/OLINGO-1228?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16898574#comment-16898574 ] 

Ramya commented on OLINGO-1228:
-------------------------------

Small fix as part of commit https://git-wip-us.apache.org/repos/asf?p=olingo-odata2.git;a=commit;h=ce414cc7ae44eae7aa4f8ffd4f4b124679d7623f

>  JPA Parameterization issue
> ---------------------------
>
>                 Key: OLINGO-1228
>                 URL: https://issues.apache.org/jira/browse/OLINGO-1228
>             Project: Olingo
>          Issue Type: Bug
>          Components: odata2-jpa
>            Reporter: Archana Rai
>            Priority: Major
>
> 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: &#xd;
> 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.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)