blob: eb67813162c426896b5ed22368d7489b0e5d18cb [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="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"/>
<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>