For not-null you can model multiplicities as 0..1 but yes we can add a namespace property that doesn't make not-null the default (just file a JIRA issue for the hibernate cartridge). About the outer join, take a look at the hibernateUseOuterJoin property (http://team.andromda.org/docs/andromda-hibernate-cartridge/namespace.html), that should do what you want, and if it doesn't then file another Hibernate JIRA issue requesting the ability to set the default outer join value.
Chad -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bernard Sirius Sent: Friday, February 18, 2005 8:32 PM To: andromda-user@lists.sourceforge.net Cc: Chad Brandon Subject: RE: [Andromda-user] RE: 1:1 associations bingo ! that's it. Hey, this is a *huge* improvement for my application! OK, this is the second thing that I don't want AndroMDA to default for me, the first one being setting not-null="true" all over the place. For now, I'm hacking maven code like this: <replace dir="target/classes" token='not-null="true"' value='not-null="false"'> <include name="**/*.hbm.xml"/> </replace> ...but it would of course be better to have an AndroMDA tag of sort for this. I think, Chad, you told me to jira this thing about the not-nulls before. Not sure though. Do *you* remember? Now, has this outer-join business already been addressed in the past, or is it going to be a new feature request? bernard --- Bernard Sirius <[EMAIL PROTECTED]> wrote: > > 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 > __________________________________ Do you Yahoo!? Yahoo! Mail - 250MB free storage. Do more. Manage less. 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 ------------------------------------------------------- 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