blob: a25c1ecc79a41dd3395f20b80553e388cccf1aef [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 Non-owning Side Test Model Instance Document</description>
<package>org.eclipse.persistence.testing.models.jpa.xml.merge.incompletemappings.nonowning</package>
<access>PROPERTY</access>
<entity name="XMLIncompleteCustomer" class="Customer">
<table name="CMP3_XML_INC_CUSTOMER"/>
<table-generator name="XML_INCOMPLETE_CUSTOMER_GENERATOR_TABLE" table="CMP3_XML_INC_CUSTOMER_SEQ" pk-column-name="SEQ_NAME" value-column-name="SEQ_COUNT" pk-column-value="CUST_SEQ"/>
<exclude-default-listeners/>
<exclude-superclass-listeners/>
<attributes>
<id name="customerId">
<column name="CUST_ID"/>
<generated-value strategy="TABLE" generator="XML_INCOMPLETE_CUSTOMER_GENERATOR_TABLE"/>
</id>
<basic name="city">
<column name="CITY"/>
</basic>
<basic name="name">
<column name="NAME"/>
</basic>
<version name="version">
<column name="CUST_VERSION"/>
</version>
<one-to-many name="orders" target-entity="Order" mapped-by="customer">
<cascade>
<cascade-all/>
</cascade>
</one-to-many>
<one-to-one name="billingAddress" fetch="LAZY" mapped-by="customer"/>
</attributes>
</entity>
<entity name="XMLIncompleteItem" class="Item">
<table name="CMP3_XML_INC_ITEM"/>
<table-generator name="XML_INCOMPLETE_ITEM_TABLE_GENERATOR" table="CMP3_XML_INC_CUSTOMER_SEQ" pk-column-name="SEQ_NAME" value-column-name="SEQ_COUNT" pk-column-value="ITEM_SEQ"/>
<exclude-default-listeners/>
<exclude-superclass-listeners/>
<attributes>
<id name="itemId">
<column name="ITEM_ID"/>
<generated-value strategy="TABLE" generator="XML_INCOMPLETE_ITEM_TABLE_GENERATOR"/>
</id>
<basic name="name"/>
<basic name="description"/>
<basic name="image">
<column name="IMAGE" length="1280"/>
<lob/>
</basic>
<version name="version">
<column name="ITEM_VERSION"/>
</version>
<one-to-one name="order" fetch="LAZY" mapped-by="item"/>
<many-to-many name="partsLists" target-entity="PartsList" mapped-by="items"/>
</attributes>
</entity>
</entity-mappings>