Hi, I have mapped several classes as joned-subclass. I need use bidirectional association mapping with joined tables, but element <joined-subclass> doesn't allow use element <join> (as it is used within example Hibernate documentation 7.5.1)
My mapping xml looks like:
<class name="Contact" table="T_CONTACT" abstract="true">
...
<joined-subclass name="Proprietor" table="T_PROPRIETOR">
<key column="ID"/>
....
<set name="facilities" table="R_PROPRIETOR_FACILITY" cascade="all,delete-orphan">
<key column="ID_PROPRIETOR"/>
<many-to-many column="ID_FACILITY" class="Facility" unique="true"/>
</set>
</joined-subclass>
<joined-subclass name="Facility" table="T_FACILITY" abstract="true">
<key column="ID"/>
<!-- HERE I NEED USE JOIN element -->
</joined-subclass>
</class>
Does it exist any other possibility for map it???
Radim
|