You should use queries to do this. Take a look at these blog posts:
http://nhforge.org/blogs/nhibernate/archive/2009/04/17/nhibernate-mapping-named-queries-lt-query-gt-and-lt-sql-query-gt.aspx
http://nhforge.org/blogs/nhibernate/archive/2009/05/13/nhibernate-2-1-0-executable-queries.aspx
http://nhforge.org/wikis/howtonh/retrieve-a-nested-component-with-criteria-api.aspx
http://nhforge.org/blogs/nhibernate/archive/2008/10/05/querying-with-nhibernate.aspx

On May 22, 10:25 pm, Jooky2079 <[email protected]> wrote:
> Hello All,
>
> I have an example scenario containing the followig file heriarchy:
> Country -> State -> City
>
> I would like to set up nHibernate filters (or mapping) to allow a load
> to return all cities that belong to a particular country. I have
> searched and can not find a good example. Can anyone explain how the
> mapping would need to be set up?
>
> Thanks,
>
> RTS

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