i think its to not break people who use eager or lazy:

public enum FetchMode
{
/// <summary>
/// Default to the setting configured in the mapping file.
/// </summary>
Default = 0,
/// <summary>
/// Fetch eagerly, using a separate select. Equivalent to
/// <c>fetch="select"</c> (and <c>outer-join="false"</c>)
/// </summary>
Select = 1,
/// <summary>
/// Fetch using an outer join.  Equivalent to
/// <c>fetch="join"</c> (and <c>outer-join="true"</c>)
/// </summary>
Join = 2,

Lazy = Select,
Eager = Join
}






On Thu, Apr 8, 2010 at 11:57 PM, Ramon Smits <[email protected]> wrote:

> > you could set fetch mode to sub select - this is good when you load
> multiple
> > objects and wanna batch load their associations loads to one query but
> > unfortunately, this can only be done from the mappings and will affect
> all
> > queries on the entity
>
> I have this set on some associations. Associations that I usually need
> to fetch to make search result summaries complete.
>
> > Or you could use the multi criteria... but its much less comfortable,. If
> > you fetch only one entity and need to load all of its association, then i
> > thinks you should check first how much time is added by a round trip.
>
> Retrieving only one item is pretty fast problem is when retrieving
> lots of different at the same time. Here I would benefit from large
> result sets retrieved in one roundtrip resulting in less chatty
> database connections and shorter transaction times.
>
> Thanks for the explanation of .Eager and .Join. If these result in the
> same behavior then why do both exist.
>
>
> Ramon
>
> --
> You received this message because you are subscribed to the Google Groups
> "nhusers" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<nhusers%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/nhusers?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to