java - Exception calling spring data jpa query method with suffix "IN" against primitive type on openjpa -


i have following jpa data query method:

findbyentityidin(list<long> entities); 

and on persistent object have long type persisent field called "entityid".

when call method on openjpa following exception...

org.springframework.dao.invaliddataaccessapiusageexception: filter invalid. cannot compare field entityid of type long value of type java.util.collection. numeric comparisons must between numeric types only. enable such comparisons backwards-compatibility, add "quotednumbersinqueries=true" org.apache.openjpa.compatibility setting in configuration.; nested exception org.apache.openjpa.persistence.argumentexception: filter invalid. cannot compare field entityid of type long value of type java.util.collection. numeric comparisons must between numeric types only. enable such comparisons backwards-compatibility, add "quotednumbersinqueries=true" org.apache.openjpa.compatibility setting in configuration.

should recommends or there solution? sounds can use collections against string data types without configuration parameter quotes each entry in passed in collection.

this bug in openjpa. recommend use different persistence provider.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -