<?xml version="1.0" encoding="UTF-8"?> | |
<descriptor type="o-x"> | |
<name>com.example.customer.Spouse</name> | |
<class-handle> | |
<type-name>com.example.customer.Spouse</type-name> | |
</class-handle> | |
<transactional-policy type="ox"> | |
<descriptor-alias>Spouse</descriptor-alias> | |
<refresh-cache-policy/> | |
<caching-policy/> | |
<query-manager type="ox"/> | |
<locking-policy type="ox"/> | |
<primary-key-policy/> | |
</transactional-policy> | |
<mappings> | |
<mapping type="xml-object-reference"> | |
<name>address</name> | |
<attribute-handle> | |
<attribute-declaring-type-name>com.example.customer.Spouse</attribute-declaring-type-name> | |
<attribute-name>address</attribute-name> | |
</attribute-handle> | |
<reference-descriptor-handle> | |
<descriptor-name>com.example.customer.Address</descriptor-name> | |
</reference-descriptor-handle> | |
<xml-field-pairs> | |
<field-pair> | |
<source-xml-field>tns:mailing-address/text()</source-xml-field> | |
<target-xml-field>@id</target-xml-field> | |
</field-pair> | |
</xml-field-pairs> | |
</mapping> | |
<mapping type="xml-direct"> | |
<name>firstName</name> | |
<attribute-handle> | |
<attribute-declaring-type-name>com.example.customer.Spouse</attribute-declaring-type-name> | |
<attribute-name>firstName</attribute-name> | |
</attribute-handle> | |
<xml-field>tns:first-name/text()</xml-field> | |
</mapping> | |
<mapping type="xml-direct"> | |
<name>id</name> | |
<attribute-handle> | |
<attribute-declaring-type-name>com.example.customer.Spouse</attribute-declaring-type-name> | |
<attribute-name>id</attribute-name> | |
</attribute-handle> | |
<xml-field>@id</xml-field> | |
</mapping> | |
<mapping type="xml-direct"> | |
<name>lastName</name> | |
<attribute-handle> | |
<attribute-declaring-type-name>com.example.customer.Spouse</attribute-declaring-type-name> | |
<attribute-name>lastName</attribute-name> | |
</attribute-handle> | |
<xml-field>tns:last-name/text()</xml-field> | |
</mapping> | |
</mappings> | |
<schema-context-handle> | |
<schema>Customer-XML</schema> | |
<qname-path> | |
<qname component-type="complex-type" namespace-uri="urn:customer" local-name="spouse"/> | |
</qname-path> | |
</schema-context-handle> | |
<root-descriptor>false</root-descriptor> | |
</descriptor> |