Chaper 8.1 demonstrates this feature, using the following example:
Code: Select all
<class name="eg.Person" table="person">
<id name="Key" column="pid" type="string">
<generator class="uuid"/>
</id>
<property name="birthday" type="date"/>
<component name="Name" class="eg.Name" unique="true">
<parent name="namedPerson"/> <!-- reference back to the Person -->
<property name="initial"/>
<property name="first"/>
<property name="last"/>
</component>
</class>
Without this feature, there is no way to identify the owner of a component - e.g. no way to traverse the object graph back from a component instance to the entity it belongs to...