The following item descriptors define two item types: author and address. The author item type references the address item type as follows:
authordefines anaddressproperty, which sets the attributeitem-typetoaddress.The
addressproperty sets itscascadeattribute toinsert,updateanddelete.
<!-- The "author" item type --> <item-descriptor name="author"> <table name="author" id-column-names="author_id" type="primary"> <property name="name"/> <property name="address" item-type="address" cascade="insert,update,delete"/> </table> </item-descriptor> <!-- The "address" item type --> <item-descriptor name="address"> <table name="address" id-column-names="address_id" type="primary"> <property name="streetAddress"/> <property name="city"/> <property name="state"/> <property name="zip"/> </table> </item-descriptor>
Given these definitions, whenever an author type repository item is created, added, updated, or deleted, the same actions apply to the corresponding address repository item.

