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
public class RecallItem {
...
public String getStatus() {
return status;
}
...
}
public class CQRecallItem {
...
public static final Attribute<RecallItem, String> STATUS = new SimpleNullableAttribute<RecallItem, String>("STATUS") {
public String getValue(RecallItem recallitem, QueryOptions queryOptions) { return recallitem.getStatus(); }
}
...
}
SQLParser provides an api to register attributes from the pojo class, but not a seperate class:
parser.registerAttribute results in failure with sql "select * from collection where status = 'ACTIVE'" and it requires query with upper-case field "STATUS" instead of "status". However parser.forPojoWithAttributes requires query with lower-case field 'status'. Such behavior is confusing. Besides, if RecallItem.status is private this field can't be queried either, which is not documented in the guide.
SQLParser provides an api to register attributes from the pojo class, but not a seperate class:
The text was updated successfully, but these errors were encountered: