Perhaps i have to change the subject to "stupid subclass question" now but i didn't get it yet.
We use XDoclet to generate the mapping documents. It worked fine with version 2.0.1 but version 2.1 doesn't accept the subclass-mappings:
Code:
<hibernate-mapping>
<class
name="ClassA"
table="TEXT"
dynamic-update="false"
dynamic-insert="false"
discriminator-value="DISC_A"
>
<id
...
</id>
<discriminator
column="TYPE"
type="string"
length="30"
/>
<property
name="propX"
type="string"
column="PROP_X"
length="2"
/>
<property
name="propY"
type="string"
column="PROP_Y"
length="3"
/>
<property
...
/>
<subclass
name="ClassB"
dynamic-update="false"
dynamic-insert="false"
discriminator-value="DISC_B"
>
</subclass>
<subclass
name="ClassC"
dynamic-update="false"
dynamic-insert="false"
discriminator-value="DISC_C"
>
...
So please give me a hint what to change in the mapping documents.
Thanks
Philipp