Thank you for the MaxFetchDepth pointer. Now for the
aggregation/composition issue, I am well aware that
setting an association's type to "composition" will
eagerly load its dependent objects, unless you specify
it to be lazy explicitely using a tag value.

ok, I have an association between a User entity and a
Rolodex Entity. It is a composition, which to me
implies a black diamond on the User side of the
relation.

Both ends of the relation have a 1 multiplicity.

here's what andromda generates:

        <many-to-one name="rolodex"
class="fractals.psychos.core.pim.entity.RolodexImpl"
outer-join="auto" unique="true" not-null="false"
cascade="delete">
            <column name="ROLODEX_FK"/>
        </many-to-one>

I have specified  @andromda.hibernate.lazy on BOTH
ends of the relation, just to be sure.

not only is the "lazy" attribute missing, but, ok I
may be naive, but this isn't a many-to-one
association, but a 1-to-1 association.

can somebody please explain this to me?

bernard

--- Wouter Zoons <[EMAIL PROTECTED]> wrote:
> > I can't figure out how to tell hibernate NOT to
> > eagerly load relations. It seems to be completely
> > ignorant of the "lazy=true" attribute.
> >
> 
> it is not
> 
> bottom of this page:
>
http://team.andromda.org/docs/andromda-spring-cartridge/howto2.html
> 
> (compositionDefinesEagerLoading)
>
http://team.andromda.org/docs/andromda-hibernate-cartridge/namespace.html
> 
> > So, as a last resort, as is stated there, I'd like
> to
> > try setting max_fetch_depth to 1 or 2, only I
> don't
> > know how to let AndroMDA specify that.
> >
> 
> (hibernateMaxFetchDepth)
>
http://team.andromda.org/docs/andromda-hibernate-cartridge/namespace.html
> 
> 
> -- Wouter
> 
> 


        
                
__________________________________ 
Celebrate Yahoo!'s 10th Birthday! 
Yahoo! Netrospective: 100 Moments of the Web 
http://birthday.yahoo.com/netrospective/


-------------------------------------------------------
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

Reply via email to