blob: ba041ceb6f69ec6d543486c3338f22a35858f9e2 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!--
Copyright (c) 2018 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.
This Source Code may also be made available under the following Secondary
Licenses when the conditions for such availability set forth in the
Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
version 2 with the GNU Classpath Exception, which is available at
https://www.gnu.org/software/classpath/license.html.
SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
-->
<persistence-jar xmlns="http://java.sun.com/xml/ns/persistence_ORM">
<class name="com.acme.DeliveryService">
<entity>
<entity-type>CMP</entity-type>
<access>PROPERTY</access>
<version>3</version>
</entity>
<property name="serviceName">
<id>
<generate>NONE</generate>
<generator></generator>
</id>
</property>
<property name="priceCategory">
<mapping xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="basic">
<fetch>EAGER</fetch>
</mapping>
</property>
<property name="customers">
<mapping xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="many-to-many">
<target-entity>com.acme.Customer</target-entity>
<mapped-by></mapped-by>
<fetch>LAZY</fetch>
</mapping>
<association-table>
<table>
<name></name>
<catalog></catalog>
<schema>TEST1</schema>
</table>
</association-table>
</property>
</class>
<class name="com.acme.Address">
<entity>
<entity-type>CMP</entity-type>
<access>PROPERTY</access>
<version>3</version>
</entity>
<property name="id">
<id>
<generate>AUTO</generate>
<generator></generator>
</id>
</property>
<property name="version">
<version>true</version>
</property>
<property name="street">
<mapping xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="basic">
<fetch>EAGER</fetch>
</mapping>
</property>
</class>
<class name="com.acme.Order">
<entity>
<entity-type>CMP</entity-type>
<access>PROPERTY</access>
<version>3</version>
</entity>
<property name="id">
<id>
<generate>AUTO</generate>
<generator></generator>
</id>
</property>
<property name="version">
<version>true</version>
</property>
<property name="itemId">
<mapping xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="basic">
<fetch>EAGER</fetch>
</mapping>
</property>
<property name="quantity">
<mapping xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="basic">
<fetch>EAGER</fetch>
</mapping>
</property>
<property name="customer">
<mapping xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="many-to-one">
<target-entity></target-entity>
<fetch>EAGER</fetch>
</mapping>
</property>
</class>
<class name="com.acme.Customer">
<entity>
<entity-type>CMP</entity-type>
<access>FIELD</access>
<version>3</version>
</entity>
<property name="id">
<id>
<generate>AUTO</generate>
<generator></generator>
</id>
</property>
<property name="version">
<version>true</version>
</property>
<property name="address">
<mapping xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="many-to-one">
<target-entity></target-entity>
<fetch>EAGER</fetch>
</mapping>
</property>
<property name="description">
<mapping xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="basic">
<fetch>EAGER</fetch>
</mapping>
</property>
<property name="orders">
<mapping xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="one-to-many">
<target-entity>com.acme.Order</target-entity>
<mapped-by>customer</mapped-by>
<fetch>LAZY</fetch>
</mapping>
</property>
<property name="serviceOptions">
<mapping xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="many-to-many">
<target-entity></target-entity>
<mapped-by>customers</mapped-by>
<fetch>LAZY</fetch>
</mapping>
</property>
</class>
</persistence-jar>