<?xml version="1.0" encoding="UTF-8"?> | |
<descriptor type="o-x"> | |
<name>model.Address</name> | |
<class-handle> | |
<type-name>model.Address</type-name> | |
</class-handle> | |
<transactional-policy type="ox"> | |
<descriptor-alias>Address</descriptor-alias> | |
<refresh-cache-policy/> | |
<caching-policy/> | |
<query-manager type="ox"/> | |
<locking-policy type="ox"/> | |
<primary-key-policy/> | |
</transactional-policy> | |
<mappings> | |
<mapping type="xml-direct"> | |
<name>city</name> | |
<attribute-handle> | |
<attribute-declaring-type-name>model.Address</attribute-declaring-type-name> | |
<attribute-name>city</attribute-name> | |
</attribute-handle> | |
<xml-field>city/text()</xml-field> | |
</mapping> | |
<mapping type="xml-direct"> | |
<name>country</name> | |
<attribute-handle> | |
<attribute-declaring-type-name>model.Address</attribute-declaring-type-name> | |
<attribute-name>country</attribute-name> | |
</attribute-handle> | |
<xml-field>country/text()</xml-field> | |
</mapping> | |
<mapping type="xml-direct"> | |
<name>id</name> | |
<attribute-handle> | |
<attribute-declaring-type-name>model.Address</attribute-declaring-type-name> | |
<attribute-name>id</attribute-name> | |
</attribute-handle> | |
<xml-field>@id</xml-field> | |
</mapping> | |
<mapping type="xml-direct"> | |
<name>postalCode</name> | |
<attribute-handle> | |
<attribute-declaring-type-name>model.Address</attribute-declaring-type-name> | |
<attribute-name>postalCode</attribute-name> | |
</attribute-handle> | |
<xml-field>zip-code/text()</xml-field> | |
</mapping> | |
<mapping type="xml-direct"> | |
<name>province</name> | |
<attribute-handle> | |
<attribute-declaring-type-name>model.Address</attribute-declaring-type-name> | |
<attribute-name>province</attribute-name> | |
</attribute-handle> | |
<xml-field>state/text()</xml-field> | |
</mapping> | |
<mapping type="xml-direct"> | |
<name>street</name> | |
<attribute-handle> | |
<attribute-declaring-type-name>model.Address</attribute-declaring-type-name> | |
<attribute-name>street</attribute-name> | |
</attribute-handle> | |
<xml-field>street/text()</xml-field> | |
</mapping> | |
</mappings> | |
<schema-context-handle> | |
<schema>employee</schema> | |
<qname-path> | |
<qname component-type="complex-type" namespace-uri="http://www.example.org/jpadas-employee" local-name="address-type"/> | |
</qname-path> | |
</schema-context-handle> | |
<root-descriptor>false</root-descriptor> | |
</descriptor> |