blob: ce70b683e9079d5cc323d67c76808fe60a2a2ae7 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<descriptor type="o-x">
<name>model.Employee</name>
<class-handle>
<type-name>model.Employee</type-name>
</class-handle>
<transactional-policy type="ox">
<descriptor-alias>Employee</descriptor-alias>
<refresh-cache-policy/>
<caching-policy/>
<query-manager type="ox"/>
<locking-policy type="ox"/>
<primary-key-policy/>
</transactional-policy>
<mappings>
<mapping type="composite-object">
<name>address</name>
<attribute-handle>
<attribute-declaring-type-name>model.Employee</attribute-declaring-type-name>
<attribute-name>address</attribute-name>
</attribute-handle>
<reference-descriptor-handle>
<descriptor-name>model.Address</descriptor-name>
</reference-descriptor-handle>
<xpath>address</xpath>
</mapping>
<mapping type="xml-direct">
<name>firstName</name>
<attribute-handle>
<attribute-declaring-type-name>model.Employee</attribute-declaring-type-name>
<attribute-name>firstName</attribute-name>
</attribute-handle>
<xml-field>first-name/text()</xml-field>
</mapping>
<mapping type="xml-direct">
<name>gender</name>
<attribute-handle>
<attribute-declaring-type-name>model.Employee</attribute-declaring-type-name>
<attribute-name>gender</attribute-name>
</attribute-handle>
<xml-field>gender/text()</xml-field>
</mapping>
<mapping type="xml-direct">
<name>id</name>
<attribute-handle>
<attribute-declaring-type-name>model.Employee</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>model.Employee</attribute-declaring-type-name>
<attribute-name>lastName</attribute-name>
</attribute-handle>
<xml-field>last-name/text()</xml-field>
</mapping>
<mapping type="composite-collection">
<name>phoneNumbers</name>
<attribute-handle>
<attribute-declaring-type-name>model.Employee</attribute-declaring-type-name>
<attribute-name>phoneNumbers</attribute-name>
</attribute-handle>
<reference-descriptor-handle>
<descriptor-name>model.PhoneNumber</descriptor-name>
</reference-descriptor-handle>
<xpath>phone-number</xpath>
<container-policy type="list">
<container-class>
<uses-default-container-class>true</uses-default-container-class>
</container-class>
</container-policy>
</mapping>
<mapping type="xml-direct">
<name>salary</name>
<attribute-handle>
<attribute-declaring-type-name>model.Employee</attribute-declaring-type-name>
<attribute-name>salary</attribute-name>
</attribute-handle>
<xml-field>salary/text()</xml-field>
</mapping>
<mapping type="xml-direct">
<name>version</name>
<attribute-handle>
<attribute-declaring-type-name>model.Employee</attribute-declaring-type-name>
<attribute-name>version</attribute-name>
</attribute-handle>
<xml-field>@version</xml-field>
</mapping>
</mappings>
<after-loading-policy>
<post-load-class-handle>
<type-name>model.persistence.MOXyDescriptorCustomizers</type-name>
</post-load-class-handle>
<post-load-method-handle>
<method-declaring-type-name>model.persistence.MOXyDescriptorCustomizers</method-declaring-type-name>
<method-signature>afterLoadEmployee(org.eclipse.persistence.descriptors.ClassDescriptor)</method-signature>
</post-load-method-handle>
</after-loading-policy>
<schema-context-handle>
<schema>employee</schema>
<qname-path>
<qname component-type="complex-type" namespace-uri="http://www.example.org/jpadas-employee" local-name="employee-type"/>
</qname-path>
</schema-context-handle>
<default-root-element-handle>
<schema>employee</schema>
<qname-path>
<qname component-type="element" namespace-uri="http://www.example.org/jpadas-employee" local-name="employee"/>
</qname-path>
</default-root-element-handle>
<root-descriptor>true</root-descriptor>
<default-root-element-type-handle>
<schema>employee</schema>
<qname-path>
<qname component-type="complex-type" namespace-uri="http://www.example.org/jpadas-employee" local-name="employee-type"/>
</qname-path>
</default-root-element-type-handle>
</descriptor>