On Tue, Sep 29, 2009 at 12:02 PM, Christopher Giblin <[email protected]>wrote:
> > Hi, > I have a class, "A", with a one-to-many relationship to another class, "B". > Thus A refers to a collection of B. > Normally I want to load the collection lazy and therefore set fetch to > "LAZY" in my orm.xml. In one case, however, I want to load A eagerly. > > I thought the following would do the trick : > > I don't know what the problem with your attempt is, but you could try this: select a from A as a left join fetch a.b_collection -- Daryl Stultz _____________________________________ 6 Degrees Software and Consulting, Inc. http://www.6degrees.com mailto:[email protected]
