You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by chaithanyadeep nalla <ch...@gmail.com> on 2018/01/29 03:13:38 UTC

Re: JPA problem

Hi Dev Team,

When I try select query, getting following error I use jars less than
2.0.10 version, If I use version 2.0.10 I am getting different error while
updating table.


*Error with select query:*

<error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata
">
<code/>
<message xml:lang="en">
"OData - JPA Runtime: JPA query syntax is not correct"
</message>
<innererror>
class java.lang.IllegalArgumentException : org.hibernate.QueryException:
unexpected char: '{' [SELECT E1 FROM com.odataproducer.entities.Tablex E1
WHERE ((E1.UpdatedDate >= {ts '2017-12-10 05:00:00.000'}) AND
(E1.UpdatedDate <= {ts '2017-12-11 05:00:00.000'})) ORDER BY E1.ID]
</innererror>
</error>


*Error when updating:*

*update et_tableY set field1=?, **field2**=?, **field3**=?, **field4**=?
where **et_tableY_id **=?*

*org.apache.olingo.odata2.jpa.processor.api.exception.ODataJPARuntimeException:
"OData - JPA Runtime: JPA update request is not correct"*

*I tried all the scenarios but couldn't resolve the issue, any inputs?*


Thanks,
Chai