I try to set the FetchMode with a Criteria based query but then the collection retrieved contains the children of type ChildB and not all the children.
On Jul 28, 4:58 pm, armin-landscheidt <[email protected]> wrote: > Set the fetchmode of PropX to Eager and it should work. > > > > > Hello, > > > I got this mapping : > > > Child * <----------- Parent > > | > > ------------- > > | | > > ChildA ChildB ---> PropX > > > When I query Parent class, I set the FetchMode to Eager for the Child > > collection. > > > Can I (and How) eager load also a property on ChildB (for example > > propX) in the same query ? > > > Matthieu- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nhusers?hl=en -~----------~----~----~----~------~----~------~--~---
