[b]Hibernate version: 3.0a[/b]
I want to mix two inheritance strategies in Hibernate 3.0a.
I have four classes
A,
B extends A, using joined-subclass
C and D extend B, using subclass with a discriminator column
A will map to table TA
B,C,D will map to table TB.
According to the 3.0a documentation:
Hibernate does not support mixing <subclass> mappings and
<joined-subclass> mappings inside the same <class> element. However,
it is possible to use a <join> element to map this.
this should be possible.
But I have no idea how to do this.
My simple solution didnt work. complaining about:
discriminator is not valid in joined-subclass.
Any help would be appreciated.
Yours,
Martin
|