blob: 2ca885a180258d88bef31888cf6ade0a74d701c5 [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>Merge of XML and Annotations Inherited Test Model Instance Document</description>
<entity name="MergeBeerConsumer" class="org.eclipse.persistence.testing.models.jpa.xml.merge.inherited.BeerConsumer" access="PROPERTY">
<!-- This entity is partially defined by annotations and XML
including an XML override of the one-to-many telephoneNumbers
relationship -->
<table name="CMP3_MERGE_CONSUMER"/>
<table-generator name="MERGE_BEER_CONSUMER_TABLE_GENERATOR" table="CMP3_MERGE_BEER_SEQ" pk-column-name="SEQ_NAME" value-column-name="SEQ_COUNT" pk-column-value="CONSUMER_SEQ"/>
<exclude-default-listeners/>
<exclude-superclass-listeners/>
<attributes>
<id name="id">
<generated-value strategy="TABLE" generator="MERGE_BEER_CONSUMER_TABLE_GENERATOR"/>
</id>
<one-to-many name="certifications" mapped-by="beerConsumer" target-entity="org.eclipse.persistence.testing.models.jpa.xml.merge.inherited.Certification">
<map-key name="id"/>
<cascade>
<cascade-all/>
</cascade>
</one-to-many>
<one-to-many name="alpineBeersToConsume" fetch="EAGER" mapped-by="beerConsumer" target-entity="org.eclipse.persistence.testing.models.jpa.xml.merge.inherited.Alpine">
<order-by>bestBeforeDate ASC</order-by>
<cascade>
<cascade-all/>
</cascade>
</one-to-many>
<one-to-many name="canadianBeersToConsume" mapped-by="beerConsumer" target-entity="org.eclipse.persistence.testing.models.jpa.xml.merge.inherited.Canadian">
<map-key/>
<cascade>
<cascade-all/>
</cascade>
</one-to-many>
<one-to-many name="telephoneNumbers" fetch="EAGER" mapped-by="beerConsumer" target-entity="org.eclipse.persistence.testing.models.jpa.xml.merge.inherited.TelephoneNumber">
<map-key/>
<cascade>
<cascade-all/>
</cascade>
</one-to-many>
</attributes>
</entity>
<entity name="MergeTelephoneNumber" class="org.eclipse.persistence.testing.models.jpa.xml.merge.inherited.TelephoneNumber" access="PROPERTY">
<!-- The composite PK for this class is partially defined in
annotations and the remaning PK fields are defined here in XML -->
<table name="CMP3_MERGE_TELEPHONE"/>
<exclude-default-listeners/>
<exclude-superclass-listeners/>
<attributes>
<id name="type">
<column name="TYPE" length="32"/>
</id>
<id name="areaCode">
<column name="AREA_CODE" length="32"/>
</id>
<many-to-one name="beerConsumer" target-entity="org.eclipse.persistence.testing.models.jpa.xml.merge.inherited.BeerConsumer">
<join-column name="CONSUMER_ID"/>
</many-to-one>
</attributes>
</entity>
<entity name="MergeBartender" class="org.eclipse.persistence.testing.models.jpa.xml.merge.inherited.Bartender" access="FIELD"/>
</entity-mappings>