spring - Parameter value didn't match expected type while querying with some clause -


@query("select w groupchatheartbeat w w.gender=?1 , w.id in (?2) order heartbeattime desc limit 1") public long findid(string gender,list<long> participants); 

i want retrieve id of participant available in given list of participant based on gender. m getting below exceptions.

severe: servlet.service() servlet [rest] in context path [/app] threw exception [request processing failed; nested exception org.springframework.dao.invaliddataaccessapiusageexception: parameter value element [4027291] did not match expected type [java.lang.long]; nested exception java.lang.illegalargumentexception: parameter value element [4027291] did not match expected type [java.lang.long]] root cause java.lang.illegalargumentexception: parameter value element [4027291] did not match expected type [java.lang.long] 


Comments

Popular posts from this blog

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

mapreduce - Resource manager does not transit to active state from standby -

serialization - Convert Any type in scala to Array[Byte] and back -