I have an object mapped as follows:
<class name="A" table="TableA">
<id name="ID" column="AId" type="Int32" unsaved-value="0">
<generator class="native" />
</id>
<discriminator column="Type" type="Int32" />
<property name="Description" />
</class>
<subclass name="B" discriminator-value="0" extends="A">
<property name="B_specific_properties />
</subclass>
<subclass name="C" discriminator-value="1" extends="A">
<property name="C_specific_properties />
</subclass>
I'm planning to use a stored procedure to do the insert, and currently both B and C uses the same stored procedure to insert into the table. My question is with the objects mapped as above, does the sql-insert belong to class A? If it does, is it expecting to do a save() on object A? How can I make it recognize the additional properties of B and C when I'm saving?
OR
Is using one stored procedure to save for the two sub-classes an impossible task, although they belong to the same table?
Thank you very much for any input!