blob: b8d17c1c5ea9ed9f6cac0405c56413356edd2b9c [file] [log] [blame]
<!--
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
-->
<persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence persistence_1_0.xsd" version="1.0">
<persistence-unit name="@default@" transaction-type="@transaction-type@">
<provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
<@datasource-type@>@data-source-name@</@datasource-type@>
<mapping-file>META-INF/advanced-entity-mappings.xml</mapping-file>
<mapping-file>META-INF/inherited-entity-mappings.xml</mapping-file>
<mapping-file>META-INF/incomplete-nonowning-entity-mappings.xml</mapping-file>
<mapping-file>META-INF/incomplete-owning-entity-mappings.xml</mapping-file>
<mapping-file>META-INF/relationships-entity-mappings.xml</mapping-file>
<mapping-file>META-INF/orm-annotation-merge-advanced-entity-mappings.xml</mapping-file>
<mapping-file>META-INF/orm-annotation-merge-relationships-entity-mappings.xml</mapping-file>
<mapping-file>META-INF/unidirectional-relationships-entity-mappings.xml</mapping-file>
<mapping-file>META-INF/defaultlistener.xml</mapping-file>
<exclude-unlisted-classes>false</exclude-unlisted-classes>
<properties>
<property name="eclipselink.target-server" value="@server-platform@"/>
<property name="eclipselink.target-database" value="@database-platform@"/>
<property name="eclipselink.validate-existence" value="true"/>
<property name="eclipselink.orm.validate.schema" value="true"/>
<property name="eclipselink.weaving" value="@server-weaving@"/>
</properties>
</persistence-unit>
<!--multi-tenant-shared-emf PU-->
<persistence-unit name="MulitPU-1" transaction-type="@transaction-type@">
<provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
<@datasource-type@>@data-source-name@</@datasource-type@>
<mapping-file>META-INF/advanced-multitenant-entity-mappings.xml</mapping-file>
<class>org.eclipse.persistence.testing.models.jpa.xml.inheritance.FueledVehicle</class>
<exclude-unlisted-classes>true</exclude-unlisted-classes>
<properties>
<property name="eclipselink.exclude-eclipselink-orm" value="true"/>
<property name="eclipselink.target-server" value="@server-platform@"/>
<property name="eclipselink.target-database" value="@database-platform@"/>
<property name="eclipselink.weaving" value="@server-weaving@"/>
<property name="eclipselink.validate-existence" value="true"/>
<property name="eclipselink.multitenant.tenants-share-cache" value="false"/>
<property name="eclipselink.jdbc.allow-native-sql-queries" value="true"/>
<property name="eclipselink.ddl-generation" value="drop-and-create-tables"/>
<property name="eclipselink.ddl-generation.output-mode" value="both"/>
</properties>
</persistence-unit>
<!--multi-tenant-123 PU-->
<persistence-unit name="MulitPU-2" transaction-type="@transaction-type@">
<provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
<@datasource-type@>@data-source-name@</@datasource-type@>
<mapping-file>META-INF/advanced-multitenant-entity-mappings.xml</mapping-file>
<class>org.eclipse.persistence.testing.models.jpa.xml.inheritance.FueledVehicle</class>
<exclude-unlisted-classes>true</exclude-unlisted-classes>
<properties>
<property name="eclipselink.exclude-eclipselink-orm" value="true"/>
<property name="eclipselink.target-server" value="@server-platform@"/>
<property name="eclipselink.target-database" value="@database-platform@"/>
<property name="eclipselink.weaving" value="@server-weaving@"/>
<property name="eclipselink.validate-existence" value="true"/>
<property name="tenant.id" value="123"/>
<property name="eclipselink.tenant-id" value="123"/>
<property name="eclipselink.multitenant.tenants-share-emf" value="false"/>
<property name="eclipselink.session-name" value="multi-tenant-123"/>
<property name="eclipselink.jdbc.allow-native-sql-queries" value="false"/>
</properties>
</persistence-unit>
<persistence-unit name="MulitPU-3" transaction-type="@transaction-type@">
<provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
<@datasource-type@>@data-source-name@</@datasource-type@>
<class>org.eclipse.persistence.testing.models.jpa.xml.inheritance.FueledVehicle</class>
<exclude-unlisted-classes>true</exclude-unlisted-classes>
</persistence-unit>
<persistence-unit name="MulitPU-4" transaction-type="@transaction-type@">
<provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
<@datasource-type@>@data-source-name@</@datasource-type@>
<class>org.eclipse.persistence.testing.models.jpa.xml.inheritance.FueledVehicle</class>
<exclude-unlisted-classes>true</exclude-unlisted-classes>
</persistence-unit>
<persistence-unit name="MulitPU-5" transaction-type="@transaction-type@">
<provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
<@datasource-type@>@data-source-name@</@datasource-type@>
<class>org.eclipse.persistence.testing.models.jpa.xml.inheritance.FueledVehicle</class>
<exclude-unlisted-classes>true</exclude-unlisted-classes>
</persistence-unit>
</persistence>