blob: 168b504803ffc2baa00aa75cb719a2b5c10dafd1 [file] [log] [blame]
<?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
-->
<entity-mappings xmlns="http://java.sun.com/xml/ns/persistence/orm" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm orm_1_0.xsd" version="1.0">
<description>Incomplete Mappings Owning-side Test Model Instance Document</description>
<package>org.eclipse.persistence.testing.models.jpa.xml.merge.incompletemappings.owning</package>
<entity name="XMLIncompleteMergeEmployee" class="Employee" access="PROPERTY">
<table name="CMP3_XML_MERGE_EMPLOYEE"/>
<primary-key-join-column name="EMP_ID" referenced-column-name="EMP_ID"/>
<table-generator name="XML_MERGE_EMPLOYEE_TABLE_GENERATOR" table="CMP3_XML_MERGE_EMPLOYEE_SEQ" pk-column-name="SEQ_NAME" value-column-name="SEQ_COUNT" pk-column-value="XML_MERGE_EMPLOYEE_SEQ"/>
<exclude-default-listeners/>
<exclude-superclass-listeners/>
<attributes>
<id name="id">
<column name="EMP_ID"/>
<generated-value strategy="TABLE" generator="XML_MERGE_EMPLOYEE_TABLE_GENERATOR"/>
</id>
<many-to-one name="address" target-entity="Address" fetch="LAZY">
<join-column name="ADDR_ID"/>
<cascade>
<cascade-persist/>
</cascade>
</many-to-one>
<one-to-many name="phoneNumbers" target-entity="PhoneNumber" mapped-by="owner"/>
<one-to-one name="securityBadge">
<join-column referenced-column-name="BADGE_ID"/>
<cascade>
<cascade-persist/>
<cascade-refresh/>
</cascade>
</one-to-one>
<many-to-many name="projects" target-entity="Project">
<join-table name="CMP3_XML_MERGE_PROJ_EMP">
<join-column name="EMPLOYEES_EMP_ID" referenced-column-name="EMP_ID"/>
<inverse-join-column name="PROJECTS_PROJ_ID"/>
</join-table>
<cascade>
<cascade-persist/>
</cascade>
</many-to-many>
</attributes>
</entity>
</entity-mappings>