This is the default behavior of nhib. Use SetResultTransformer(CriteriaUtil.DistinctRootEntity) or wrap the result in HashSet<T> or similar.
-----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Ricardo Borges Sent: den 11 september 2008 14:35 To: [email protected] Subject: [nhusers] Re: HQL returning duplicated objects Something like: from Father as f where f.code = :code and f.Son.name like :name and f.otherCode = :otherCode and f.Son.Son.code =:sonCode thanks! 2008/9/10 Ayende Rahien <[EMAIL PROTECTED]>: > What is you query? > > On Thu, Sep 11, 2008 at 4:03 AM, Ricardo Borges <[EMAIL PROTECTED]> > wrote: >> >> http://jira.nhibernate.org/browse/NH-300 >> >> My Hql is returning duplicated objects as reported in the closed >> NH-300, I put a "distintic", this is the "solution" ? >> >> >> []'s >> >> >> Ricardo >> >> > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
