Skip to content

Invalid result rows when ManyToMany "fetch joined" with additional child OneToMany or ManyToMany child relationship fetched #293

Closed
@rbygrave

Description

@rbygrave

So where "level2s" is a ManyToMany with "level2s.level3s" as a OneToMany or ManyToMany ... and there is a prior OneToMany or ManyToMany (in the case below "level4s") so that the level2s are fetched as a "fetch join" (not part of the origin query).

... then the level2s (ManyToMany) are not loaded/associated correctly against the root object.

        final List<Level1x> things = Ebean.find(Level1x.class)
                .fetch("level4s")
                .fetch("level2s")
                .fetch("level2s.level3s")
                .order().asc("id")
                .findList();

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions