"Likewise, the special property class accesses the discriminator value of an
instance in the case of polymorphic
persistence. A Java class name embedded in the where clause will be
translated to its discriminator value.
from Eg.Cat cat where cat.class = Eg.DomesticCat"
so I would try:
from Person p join p.Pets pet where pet.class = Dog
http://groups.google.com/group/nhusers/msg/a688fb5ca7d55950
from Person p join p.Pets pet where pet.class = Dog
would be
s.CreateCriteria(typeof(Person), "p")
.CreateCriteria("p.Pets", "pet")
.Add(Property.ForName("pet.class").Eq(typeof(Dog)
.List();
--
Wolfgang