I can imagine wanting to eager load attributes and relationships under
certain circumstances, for example the N+1 query problem.  If all loads were
lazy I'd always get N+1 queries to load N beans.  If I could configure it
for eager load then I could also load N beans in 1 query.

Cheers

-----Original Message-----
From: Cedric Beust
To: Jay Walters; [EMAIL PROTECTED]
Sent: 5/17/01 12:13 PM
Subject: RE: CMP relationships in EJB2.0

> From: Jay Walters [mailto:[EMAIL PROTECTED]]

> But you do support ways to override this behavior in the
> application server specific deployment descriptor?

No, but I'd be interested in hearing what other behaviors you would
envision?

--
Cedric


>
> Cheers
>
> -----Original Message-----
> From: Cedric Beust
> To: [EMAIL PROTECTED]
> Sent: 5/17/01 11:07 AM
> Subject: Re: CMP relationships in EJB2.0
>
> > -----Original Message-----
> > From: A mailing list for Enterprise JavaBeans development
>
> > With the EJB2.0 spec, there is now support for container managed
> > relationships for Entity Beans. I wonder how these relationships are
> > restored when I load a bean. For example one-to-many relationships,
> are
> > all the relationships from one bean to the other beans created when
I
> > load the one bean and then stored in a collection? Or is this done
in
> a
> > lazy loading way, only restoring the relationships when they are
used?
>
> This is vendor-dependent, but it obviously makes sense to lazy-load
the
> relationships, and also all the container-managed fields in general
> (i.e. in
> Weblogic, ejbLoad() is a no-op).
>
> --
> Cedric
>
>
========================================================================
> ===
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> of the message "signoff EJB-INTEREST".  For general help, send email
to
> [EMAIL PROTECTED] and include in the body of the message "help".
>

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to