probably is the samehttp://nhjira.koah.net/browse/NH-1839

2009/6/14 Thomas Koch <[email protected]>

>
> Hi - I am using NH 2.0 and a MultiCriteria to load a bunch of objects.
>
> Each of the DetachedCriteria contains FetchMode.Join for an
> association. As a consequence I set a
> DistinctRootEntityResultTransformer to collapse the entitites
> returned:
>
> var transformer = new DistinctRootEntityResultTransformer();
> var dc = DetachedCriteria.For<Customer>();
> dc.Add( ... );
> dc.SetFetchMode("Orders",FetchMode.Join);
> dc.SetResultTransformer(transformer)
>
> Class diagram: Customer -* Orders
>
> However, the IResultTransformer.TransformList() method is never
> invoked by NH. Only the IResultTransformer.TransformTuple() is
> invoked. The end result is multiple root entities.   :-)
>
> Is this a bug or a know limitation of NH 2.0 with MultiCriteria?
>
> Kind regards
> Thomas
> >
>


-- 
Fabio Maulo

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