| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| |
| Copyright (c) 2018, 2020 Oracle and/or its affiliates. All rights reserved. |
| |
| This program and the accompanying materials are made available under the |
| terms of the Eclipse Public License v. 2.0 which is available at |
| http://www.eclipse.org/legal/epl-2.0, |
| or the Eclipse Distribution License v. 1.0 which is available at |
| http://www.eclipse.org/org/documents/edl-v10.php. |
| |
| SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause |
| |
| --> |
| |
| <object-persistence version="" 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"> |
| <name>DeploymentXML Schema Generation Tests</name> |
| <class-mapping-descriptors> |
| <class-mapping-descriptor xsi:type="xml-class-mapping-descriptor"> |
| <class>org.eclipse.persistence.testing.jaxb.schemagen.deploymentxml.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>firstName</attribute-name> |
| <get-method>getFirstName</get-method> |
| <set-method>setFirstName</set-method> |
| <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-mappings> |
| <descriptor-type>aggregate</descriptor-type> |
| <instantiation/> |
| <copying xsi:type="instantiation-copy-policy"/> |
| <default-root-element>employee</default-root-element> |
| <default-root-element-field name="employee" xsi:type="node"> |
| <leaf-element-type>employee-type</leaf-element-type> |
| </default-root-element-field> |
| <schema xsi:type="schema-file-reference"> |
| <resource>Employee.xsd</resource> |
| <schema-context>/employee-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> |
| <password></password> |
| </login> |
| </object-persistence> |