Hi,

I ran into the same problem again this time not with related
collections but with related entities.

I have a PersonRole entity (my m-n entity) which has, you would never
guess, a reference to a person and a reference to a role. I have set
Fetch=FetchMode.Join on both relations (I also tried
OuterJoin=OuterJoinStrategy.True even though I think it does the same
and the result is actually the same).

Now if I load one PersonRole NHibernate creates one single sql with 2
nice outer joins. Alas, when I load all PersonRole's using HQL "from
PersonRole" NHibernate does not use joins. Not a single one :-)

If anybody could enlighten me as to why this is the case I would
really appreciate it.

Best,
Ronald
--~--~---------~--~----~------------~-------~--~----~
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