I think I know what causes my queries to "cascade"... Needs checking, but I'd like to have your hearings about this: it's all about the outer-join attribute in the many-to-one, one-to-one, etc... mappings:
quoting from the hibernate documentation: The outer-join attribute accepts three different values: * auto (default) Fetch the association using an outerjoin if the associated class has no proxy * true Always fetch the association using an outerjoin * false Never fetch the association using an outerjoin I guess if I set outer-join to "false", my problem will automagically disappear... well, things are never so simple (and for example, I don't have a clue about the meaning of 'if the associated class has no proxy')... let's try! but, gosh, this may be a revelation, don't you think? bernard > No...only composition associations are by eagerly > loaded...which sets > > [CB] By "default" I meant to say. > > that lazy flag to "false" by the way you can turn > off the composition > defining > eager loading: > http://team.andromda.org/docs/andromda-hibernate-cartridge/namespace.html > (look for compositionDefinesEagerLoading). > That way you can use the lazy loading tagged value > when you need to define > eager loading. > > Chad > > -----Original Message----- > From: Bernard Sirius > [mailto:[EMAIL PROTECTED] > Sent: Friday, February 18, 2005 7:45 PM > To: Chad Brandon > Subject: 1:1 associations > > chad, > > are 1:1 relations eagerly loaded by default with > hibernate? I can't get rid of those cascades of > outer > joins in hibernate generated queries. by "cascades" > I > mean that not only the 1:1 associations are loaded > but > then all the 1:1 associations reachable from there, > and so on recursively. > > Is this by any means normal? > > bernard > > > > __________________________________ > Do you Yahoo!? > Yahoo! Mail - Easier than ever with enhanced search. > Learn more. > http://info.mail.yahoo.com/mail_250 > > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT > Products from real users. > Discover which products truly live up to the hype. > Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Andromda-user mailing list > Andromda-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/andromda-user > > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Andromda-user mailing list Andromda-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/andromda-user