Missing: parent-reference for component mappings
Posted: Wed 15 Feb 2012 19:06
It looks like parent-references for component-mappings is unsupported?
Chaper 8.1 demonstrates this feature, using the following example:
I'm referring to the tag in the section.
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...
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...