blob: 03495cabea8ed703bf4dea89356bce465a499591 [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="2.3" xmlns="http://www.eclipse.org/eclipselink/xsds/persistence/orm" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<package>org.eclipse.persistence.testing.models.jpa.ddlgeneration</package>
<entity class="CKeyEntityB">
<attributes>
<one-to-many name="as" mapped-by="bs">
<cascade-on-delete>true</cascade-on-delete>
</one-to-many>
<one-to-one name="uniqueA" mapped-by="uniqueB">
<cascade-on-delete>true</cascade-on-delete>
</one-to-one>
</attributes>
</entity>
<entity class="CKeyEntityA"/>
<entity class="CKeyEntityB2"/>
<entity class="CKeyEntityC"/>
<entity class="Employee">
<secondary-table name="DDL_SALARY" creation-suffix="creationSuffixString1" />
<attributes>
<element-collection name="responsibilities">
<column name="DESCRIPTION"/>
<collection-table name="DDL_RESPONS" creation-suffix="creationSuffixString2">
</collection-table>
</element-collection>
</attributes>
</entity>
<entity class="MachineState"/>
<entity class="UniqueConstraintsEntity1"/>
<entity class="UniqueConstraintsEntity2">
<table name="DDL_UCENTITY2">
<unique-constraint>
<column-name>column2</column-name>
</unique-constraint>
<unique-constraint>
<column-name>column31</column-name>
<column-name>column32</column-name>
</unique-constraint>
</table>
<attributes>
<basic name="column1"><column unique="true" nullable="false"/></basic>
<basic name="column2"><column nullable="false"/></basic>
<basic name="column31"><column nullable="false"/></basic>
<basic name="column32"><column nullable="false"/></basic>
</attributes>
</entity>
<entity class="Comment">
<table name="DDL_COMMENT" creation-suffix="creationSuffixString3"/>
</entity>
<entity class="Many">
<attributes>
<many-to-many name="many" target-entity="Many">
<join-table name="DDL_MANY_MANY" creation-suffix="creationSuffixString4" />
<cascade>
<cascade-persist/>
</cascade>
</many-to-many>
</attributes>
</entity>
<entity class="Purchase">
<index>
<column-name>FEE_AMOUNT</column-name>
</index>
</entity>
<entity class="Currency">
<attributes>
<id name="id">
<generated-value />
</id>
</attributes>
</entity>
<embeddable class="Money">
<attributes>
<many-to-one name="currency"></many-to-one>
</attributes>
</embeddable>
<embeddable class="ThreadInfo"/>
</entity-mappings>
<!-- <many-to-one name="address" target-entity="org.eclipse.persistence.testing.models.jpa.advanced.Address" fetch="LAZY">
<join-column name="ADDR_ID"/>
<cascade>
<cascade-persist/>
</cascade>
</many-to-one> -->