【发布时间】:2015-09-16 13:15:17
【问题描述】:
我正在尝试使用 Objectify 5.1.8 执行以下查询:-
Query<Coupon> coupons = ObjectifyService.ofy().load().type(Coupon.class).filter("rewardPoints !=", "").project("code").distinct(true);
for (Coupon coupon : coupons) {
out.write(coupon.getCode());
}
这给了我一个错误:
java.lang.IllegalArgumentException: Inequality filter on rewardPoints must also be a group by property when group by properties are set.
基本上,我希望实现的是在实体上的不同查询旁边执行过滤器和项目查询。
如果查询有问题,请告诉我。
注意:rewardPoints 已编入索引。
【问题讨论】:
标签: google-app-engine objectify