I'm having a problem with the <subclass> mapping.   I have something like this:
Code:
<class name="Base" table="base" discriminator-value="null">
  <subclass name="A" discriminator-value="1">
  </subclass>
  <subclass name="B" discriminator-value="2">
  </subclass>
</class>
<class name="Foo">
  <set name="stuff" table="base">
    <one-to-many class="A" />
  </set>
</class>
My problem is that when I try to load Foo, the set of stuff that gets loaded is of both class A and B.  The SQL that gets generated does not use the discriminator-value at all.  Is this the way it's supposed to work?
Thanks.