You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to customise CRUD for the List view by passing a where clause like this:
where = "state in (Punjab,Jammu and Kashmir)";
List objects = type.findPage(page, search, searchFields, orderBy, order, where);
I get an IllegalArgumentException like below:
IllegalArgumentException occured : invalid where clause: state in (Rajasthan,Uttar Pradesh,Delhi,Himachal Pradesh,Punjab,Jammu and Kashmir).
This I believe is MorphiaPlugiin is splitting wherever there is an "and" in this line
String[] propValPairs = where.split("(and|&&)");
Any workaround for this? How can I escape the word "and" in my where clause?
The text was updated successfully, but these errors were encountered:
When I try to customise CRUD for the List view by passing a where clause like this:
where = "state in (Punjab,Jammu and Kashmir)";
List objects = type.findPage(page, search, searchFields, orderBy, order, where);
I get an IllegalArgumentException like below:
IllegalArgumentException occured : invalid where clause: state in (Rajasthan,Uttar Pradesh,Delhi,Himachal Pradesh,Punjab,Jammu and Kashmir).
This I believe is MorphiaPlugiin is splitting wherever there is an "and" in this line
String[] propValPairs = where.split("(and|&&)");
Any workaround for this? How can I escape the word "and" in my where clause?
The text was updated successfully, but these errors were encountered: