I don't know how this is supposed to be solved (and would love to know
myself) but ended up mapping the class type column as a property in my
class thereby allowing me to access it via HQL/Criteria.

On Tue, Sep 16, 2008 at 8:12 AM, Matt <[EMAIL PROTECTED]> wrote:
>
> Using NHibernate 2.0, how can I return all root Person entities that
> have a dog, say for example I want to return all People that have a
> Pet of type Dog, where Pets in a polymorphic IPet collection on a
> Person.  I have tried the NHibernate documentation but I can't find
> how to handle this. I'm using a table per subclass (with joined-
> subclass mapping to handle the Pet hierachy) so no discriminator value
> explicitly exists.
>
> 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]
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to