I want to fetch OneToManyB for several parents.
The closest I have come is using ChildFetchsession.QueryOver<EntityA>()
.Fetch(SelectMode.ChildFetch, e => e)
.Fetch(SelectMode.Fetch, e => e.OneToManyB)
.Where(e => e.Id.IsIn(ids))
.List();but then there still is an unnecessary join with the parent tableSELECT this_.id as id1_0_1_,
onetomanyb2_.Parent as parent2_2_3_,
onetomanyb2_.id as id1_2_3_
FROM EntityA this_
left outer join EntityB onetomanyb2_
on this_.id = onetomanyb2_.Parent
WHERE this_.id in (1,2,3)