Hi
I have the following (simplified) scenario:
class User with properties: id and mailAddress
class Sender that extends User and has 2 additional properties : logoImage and www
I have the "table per concrete class" model.
Table "sender" has the columns id, mailAddress and logoImage.
Also I have the table "sender_www" with columns: senderId and www.
The following mapping works (the property www and table sender_www are not included):
Code:
<hibernate-mapping>
<class name="com.v2.unit.data.resource.user.User">
<id name="id" column="id"/>
<property name="mailAddress"/>
<union-subclass name="com.v2.unit.data.resource.user.Sender" table="sender">
<property name="logoImage"/>
</union-subclass>
</class>
</hibernate-mapping>
How can I add to hibernate the www property?
<join ../> in <union-subclass.../> seems to be not allwoed.
one-to-one also doesn't seem to work here since I don't have a wrapper for www.
Thanks,
Octav