If you have a FolderID in the Document, you are NOT mapping it as I would
imagine...

Also, what are you trying to retrieve with your query? all folders with all
their documents?

    Diego


On Tue, Sep 14, 2010 at 22:26, rsr <[email protected]> wrote:

> Say I've got two tables Folder and Document related as you can
> imagine, and mapped in NH using just a simple property FolderID on the
> Document entity. i.e. - no many-to-one mapping.
>
> I can do an HQL inner join by using
>   from Folder f, Document d where f.FolderID = d.FolderID
> and that's great.
>
> My question is - how can I turn that into a left join, so that I can
> get folders that have no documents?
>
> Thanks.
>
> --
> 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