java - Retrieve rows even if value equal null -


i want retrieve database if 1 of fields has null

this query

  @query("{'origin.airport.iatacode' : ?0,'scores.value' : ?1,'carriername' : ?2,'scores.datetimedimension' : ?3}") set<route> findbyall(string iatacode,integer value,string carriername,string datetimedimension); 

controller

@requestmapping(value = "/filter",         method = requestmethod.get,         produces = mediatype.application_json_value) @timed public set<route> gettome() {     return routerepository.findbyall("sow", null, "great lakes airlines", "201503"); } 

this query filter route collection depending on values(iatacode,value,carriername,datetimedimension)

sometime 1 of values or more 1 has null ,so need filter other values , ignore values have null.

can 1 me please or give me other idea filter available values?


Comments

Popular posts from this blog

java - Could not locate OpenAL library -

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

sorting - opencl Bitonic sort with 64 bits keys -