I have a relationship that would greatly benefit from being able to use the <join> clause inside of a component. It appears that this is not available... any reason why?
Just curious.
Think of this: (from section 7.3.2 of 3.2.3 reference manual)
Code:
<class name="Person">
<id name="id" column="personId">
<generator class="native"/>
</id>
<join table="PersonAddress" optional="true">
<key column="personId" unique="true"/>
<many-to-one name="address" column="addressId" not-null="true"/>
</join>
</class>
<class name="Address">
<id name="id" column="addressId">
<generator class="native"/>
</id>
</class>
like this:
Code:
<class name="Person">
<id name="id" column="personId">
<generator class="native"/>
</id>
<component name="contactInfo" class="ContactInfo">
<join table="PersonAddress" optional="true">
<key column="personId" unique="true"/>
<many-to-one name="address" column="addressId" not-null="true"/>
</join>
</component>
</class>
<class name="Address">
<id name="id" column="addressId">
<generator class="native"/>
</id>
</class>