Hello,
I'm trying to take advantage of the inheritance features of Hibernate, but it doesn't look like sets in subclasses are supported? See the following example:
<hibernate-mapping>
..<class name="Payment" table="competition" catalog="clevertv">
....<cache usage="read-write"/>
....<id name="paymentId" type="java.lang.Integer">
......<column name="paymentID" />
......<generator class="native" />
....</id>
....<discriminator column="paymentType" type="string"/>
....<subclass name="CreditCardPayment" discriminator-value="cc">
......<join table="credit_card_payment">
........<key column="paymentId"/>
........<property name="cvv2" type="java.lang.String">
..........<column name="ccv2" not-null="true" />
........</property>
........<set name="cardTypes" inverse="true">
..........<key>
............<column name="paymentID" not-null="true" />
..........</key>
..........<one-to-many class="CardType" />
........</set>
......</join>
....</subclass>
..</class>
</hibernate-mapping>
In this example, the 'cvv2' property in CreditCardPayment is just fine, however the xml schema doesn't allow me to specify the set 'cardTypes' which we want to be available in CreditCardPayment and not Payment.
Is this intentional or am I missing something?
Thanks for your help,
George
|