Objectify filter with ancestor is not working, check below code:
List<AccountGroupEntity> list = ofy().load()
.type(AccountGroupEntity.class)
.ancestor(Key.create(BusinessEntity.class, bid)).filter("accountGroupType=", type)
.list();
While this is a terrible question - you should explain what you mean by "it doesn't work" - the problem is almost certainly that you are filtering by the exact literal value "accountGroupType=". You need a space before the '='.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.