GAE more than 3 attributes to filter?
- by Vik
Hie
I am using GAE jdoql and wrote query like:
Query query = pm.newQuery(BloodDonor.class);
query.setFilter(" state == :stateName && district == :distName &&" +
" city == :cityName && bloodGroup == :blood");
@SuppressWarnings("unchecked")
List<BloodDonor> donors = (List<BloodDonor>) query.execute(state.toLowerCase(), district.toLowerCase(),
city.toLowerCase(), bloodGroup.toLowerCase());
This doesnt work as execute method does not support more than 3 parameters. So how to pass more than 3