blob: 5b706b7d2b3e76b9a44318a1b1d7ed562dce2e63 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<object-persistence version="Eclipse Persistence Services - 1.1.0 (Build 20081209)" xmlns="http://www.eclipse.org/eclipselink/xsds/persistence" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:eclipselink="http://www.eclipse.org/eclipselink/xsds/persistence">
<name>jpadas-employee</name>
<class-mapping-descriptors>
<class-mapping-descriptor xsi:type="xml-class-mapping-descriptor">
<class>model.Address</class>
<alias>Address</alias>
<events xsi:type="event-policy"/>
<querying xsi:type="query-policy"/>
<attribute-mappings>
<attribute-mapping xsi:type="xml-direct-mapping">
<attribute-name>id</attribute-name>
<field name="@id" xsi:type="node"/>
</attribute-mapping>
<attribute-mapping xsi:type="xml-direct-mapping">
<attribute-name>street</attribute-name>
<field name="street/text()" xsi:type="node"/>
</attribute-mapping>
<attribute-mapping xsi:type="xml-direct-mapping">
<attribute-name>city</attribute-name>
<field name="city/text()" xsi:type="node"/>
</attribute-mapping>
<attribute-mapping xsi:type="xml-direct-mapping">
<attribute-name>province</attribute-name>
<field name="state/text()" xsi:type="node"/>
</attribute-mapping>
<attribute-mapping xsi:type="xml-direct-mapping">
<attribute-name>postalCode</attribute-name>
<field name="zip-code/text()" xsi:type="node"/>
</attribute-mapping>
<attribute-mapping xsi:type="xml-direct-mapping">
<attribute-name>country</attribute-name>
<field name="country/text()" xsi:type="node"/>
</attribute-mapping>
</attribute-mappings>
<descriptor-type>aggregate</descriptor-type>
<instantiation/>
<copying xsi:type="instantiation-copy-policy"/>
<namespace-resolver>
<namespaces>
<namespace>
<prefix>xs</prefix>
<namespace-uri>http://www.w3.org/2001/XMLSchema</namespace-uri>
</namespace>
<namespace>
<prefix>xsi</prefix>
<namespace-uri>http://www.w3.org/2001/XMLSchema-instance</namespace-uri>
</namespace>
<namespace>
<prefix>emp</prefix>
<namespace-uri>http://www.example.org/jpadas-employee</namespace-uri>
</namespace>
</namespaces>
<default-namespace-uri>http://www.example.org/jpadas-employee</default-namespace-uri>
</namespace-resolver>
<schema xsi:type="schema-file-reference">
<resource>..\src\xsd\jpadas-employee.xsd</resource>
<schema-context>/emp:address-type</schema-context>
<node-type>complex-type</node-type>
</schema>
</class-mapping-descriptor>
<class-mapping-descriptor xsi:type="xml-class-mapping-descriptor">
<class>model.Employee</class>
<alias>Employee</alias>
<events xsi:type="event-policy"/>
<querying xsi:type="query-policy"/>
<attribute-mappings>
<attribute-mapping xsi:type="xml-direct-mapping">
<attribute-name>id</attribute-name>
<field name="@id" xsi:type="node"/>
</attribute-mapping>
<attribute-mapping xsi:type="xml-direct-mapping">
<attribute-name>version</attribute-name>
<field name="@version" xsi:type="node"/>
</attribute-mapping>
<attribute-mapping xsi:type="xml-direct-mapping">
<attribute-name>firstName</attribute-name>
<field name="first-name/text()" xsi:type="node"/>
</attribute-mapping>
<attribute-mapping xsi:type="xml-direct-mapping">
<attribute-name>lastName</attribute-name>
<field name="last-name/text()" xsi:type="node"/>
</attribute-mapping>
<attribute-mapping xsi:type="xml-direct-mapping">
<attribute-name>gender</attribute-name>
<field name="gender/text()" xsi:type="node"/>
</attribute-mapping>
<attribute-mapping xsi:type="xml-direct-mapping">
<attribute-name>salary</attribute-name>
<field name="salary/text()" xsi:type="node"/>
</attribute-mapping>
<attribute-mapping xsi:type="xml-composite-object-mapping">
<attribute-name>address</attribute-name>
<reference-class>model.Address</reference-class>
<field name="address" xsi:type="node"/>
</attribute-mapping>
<attribute-mapping xsi:type="xml-composite-collection-mapping">
<attribute-name>phoneNumbers</attribute-name>
<reference-class>model.PhoneNumber</reference-class>
<field name="phone-number" xsi:type="node"/>
<container xsi:type="list-container-policy">
<collection-type>java.util.Vector</collection-type>
</container>
</attribute-mapping>
</attribute-mappings>
<descriptor-type>aggregate</descriptor-type>
<amendment>
<amendment-class>model.persistence.MOXyDescriptorCustomizers</amendment-class>
<amendment-method>afterLoadEmployee</amendment-method>
</amendment>
<instantiation/>
<copying xsi:type="instantiation-copy-policy"/>
<default-root-element>emp:employee</default-root-element>
<default-root-element-field name="emp:employee" xsi:type="node">
<leaf-element-type>emp:employee-type</leaf-element-type>
</default-root-element-field>
<namespace-resolver>
<namespaces>
<namespace>
<prefix>xs</prefix>
<namespace-uri>http://www.w3.org/2001/XMLSchema</namespace-uri>
</namespace>
<namespace>
<prefix>xsi</prefix>
<namespace-uri>http://www.w3.org/2001/XMLSchema-instance</namespace-uri>
</namespace>
<namespace>
<prefix>emp</prefix>
<namespace-uri>http://www.example.org/jpadas-employee</namespace-uri>
</namespace>
</namespaces>
<default-namespace-uri>http://www.example.org/jpadas-employee</default-namespace-uri>
</namespace-resolver>
<schema xsi:type="schema-file-reference">
<resource>..\src\xsd\jpadas-employee.xsd</resource>
<schema-context>/emp:employee-type</schema-context>
<node-type>complex-type</node-type>
</schema>
</class-mapping-descriptor>
<class-mapping-descriptor xsi:type="xml-class-mapping-descriptor">
<class>model.PhoneNumber</class>
<alias>PhoneNumber</alias>
<events xsi:type="event-policy"/>
<querying xsi:type="query-policy"/>
<attribute-mappings>
<attribute-mapping xsi:type="xml-direct-mapping">
<attribute-name>number</attribute-name>
<field name="@number" xsi:type="node"/>
</attribute-mapping>
<attribute-mapping xsi:type="xml-direct-mapping">
<attribute-name>type</attribute-name>
<field name="@type" xsi:type="node"/>
</attribute-mapping>
</attribute-mappings>
<descriptor-type>aggregate</descriptor-type>
<instantiation/>
<copying xsi:type="instantiation-copy-policy"/>
<namespace-resolver>
<namespaces>
<namespace>
<prefix>xs</prefix>
<namespace-uri>http://www.w3.org/2001/XMLSchema</namespace-uri>
</namespace>
<namespace>
<prefix>xsi</prefix>
<namespace-uri>http://www.w3.org/2001/XMLSchema-instance</namespace-uri>
</namespace>
<namespace>
<prefix>emp</prefix>
<namespace-uri>http://www.example.org/jpadas-employee</namespace-uri>
</namespace>
</namespaces>
<default-namespace-uri>http://www.example.org/jpadas-employee</default-namespace-uri>
</namespace-resolver>
<schema xsi:type="schema-file-reference">
<resource>..\src\xsd\jpadas-employee.xsd</resource>
<schema-context>/emp:phone-type</schema-context>
<node-type>complex-type</node-type>
</schema>
</class-mapping-descriptor>
</class-mapping-descriptors>
<login xsi:type="xml-login">
<platform-class>org.eclipse.persistence.oxm.platform.SAXPlatform</platform-class>
<user-name></user-name>
</login>
</object-persistence>