Jpa/Hibernate Odata $filter query fails in 2.0.10

梦想与她 提交于 2020-06-28 03:43:11

问题


I have implemented in my spring boot project olingo-odata2 library . When I try this query in olingo-odata2 version 2.0.7

/api/v1/reports/Users?$filter=startswith(Description,'a') eq true

it works fine but in this version I cannot filtering in expanded property. when I try the query in version 2.0.10 I get this error:

Query: `SELECT E1 FROM User E1 WHERE (E1.description LIKE CONCAT(?2,'%') ESCAPE '\' ) ORDER BY E1.id

You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ''\' order by user0_.id' at line 1

来源:https://stackoverflow.com/questions/47712734/jpa-hibernate-odata-filter-query-fails-in-2-0-10

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!