blob: 224d031f21cba46f41fa0b1123913ed570b56596 [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 version="1.0" 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">
<description>Mapping Document containing persistence unit metadata.
Do not provide any class specific mapping information here.</description>
<persistence-unit-metadata>
<persistence-unit-defaults>
<delimited-identifiers/>
</persistence-unit-defaults>
</persistence-unit-metadata>
<entity name="PhoneNumber" class="org.eclipse.persistence.testing.models.jpa.delimited.PhoneNumber" access="PROPERTY" metadata-complete="true">
<table name="CMP_DEL_PHONENUMBER"/>
<id-class class="org.eclipse.persistence.testing.models.jpa.delimited.PhoneNumberPK"/>
<attributes>
<id name="id">
<column name="OWNER_ID" insertable="false" updatable="false"/>
</id>
<id name="type">
<column name="TYPE"/>
</id>
<basic name="number">
<column name="NUMB"/>
</basic>
<basic name="areaCode"/>
<many-to-one name="owner" target-entity="org.eclipse.persistence.testing.models.jpa.delimited.Employee">
<join-column name="OWNER_ID" referenced-column-name="EMP_ID"/>
</many-to-one>
</attributes>
</entity>
</entity-mappings>