Hi Fabio,
I am not sure what you meant by using hql and using eager fetch with
multiple collections here?
I think I have found the solution but I would like to know if its the
correct one.
The child collections (EType.Properties, Etype.Properties.ListValues)
inside root object (Node) are IList. And i read in the documentation
that IList can contain duplicates, so if i change IList to ISet/
ICollection, then the query does not load duplicate instances within
the child collections.
But this solution requires alot of refactoring. I would like to know
if there is a way to achieve the same using IList for child
collections?
Awaiting,
Nabeel
On Jun 30, 12:48 pm, Fabio Maulo <
fabioma...@gmail.com> wrote:
> Try it using HQL and you will see the exception.
> You can use eager fetch with multiple collections when one of those
> collection is a bag
>
>
>
> On Wed, Jun 30, 2010 at 8:37 AM, Nabeel <
nabeelfa...@gmail.com> wrote:
> > On google I found out about DistinctRootEntityResultTransformer but
> > that only resolve the issue for the Root objects. I am still getting
> > duplicates in the child collections. Every root object in the
> > returned list has some weird Cartesian product mess in the child
> > collections with multiple instances of the same entity. Any idea?
>
> > Awaiting
> > Nabeel
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "nhusers" group.
> > To post to this group, send email to
nhu...@googlegroups.com.
> > To unsubscribe from this group, send email to
> >
nhusers+u...@googlegroups.com<
nhusers%2Bunsu...@googlegroups.com>
> > .