filterMany for Play 2 returns all results

两盒软妹~` 提交于 2019-11-28 12:23:14

filterMany() doesn't filter parent results by children's expressions (both has separate 'ranges').

As descriped in its API it will find all Info objects and filtered members for each.

There is also very similar topic on Google Groups where author of the question gives his own workaround for this.

Examine the difference between:

find.fetch("members")
    .where().filterMany("members").eq("memberId", 1L)
    .findList();

and

find.fetch("members")
    .where().eq("members.memberId", 1L)
    .findList();
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!