blob: 64f5a99f613d2d0261df721ac8374e8b1f4986f6 [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@>
<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.weaving" value="@server-weaving@"/>
<property name="eclipselink.validate-existence" value="true"/>
<property name="eclipselink.logging.level" value="INFO"/>
</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@>
<class>org.eclipse.persistence.testing.models.jpa.advanced.multitenant.Boss</class>
<class>org.eclipse.persistence.testing.models.jpa.advanced.multitenant.Capo</class>
<class>org.eclipse.persistence.testing.models.jpa.advanced.multitenant.SubCapo</class>
<class>org.eclipse.persistence.testing.models.jpa.advanced.multitenant.Contract</class>
<class>org.eclipse.persistence.testing.models.jpa.advanced.multitenant.MafiaFamily</class>
<class>org.eclipse.persistence.testing.models.jpa.advanced.multitenant.Mafioso</class>
<class>org.eclipse.persistence.testing.models.jpa.advanced.multitenant.Soldier</class>
<class>org.eclipse.persistence.testing.models.jpa.advanced.multitenant.Underboss</class>
<class>org.eclipse.persistence.testing.models.jpa.advanced.multitenant.Reward</class>
<class>org.eclipse.persistence.testing.models.jpa.advanced.multitenant.Address</class>
<class>org.eclipse.persistence.testing.models.jpa.advanced.multitenant.PhoneNumber</class>
<class>org.eclipse.persistence.testing.models.jpa.advanced.multitenant.Card</class>
<class>org.eclipse.persistence.testing.models.jpa.advanced.multitenant.Envelope</class>
<exclude-unlisted-classes>true</exclude-unlisted-classes>
<properties>
<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.logging.level" value="INFO"/>
<property name="eclipselink.multitenant.tenants-share-cache" value="false"/>
<property name="eclipselink.ddl-generation" value="drop-and-create-tables"/>
<property name="eclipselink.create-ddl-jdbc-file-name" value="createMafia_ddlGeneration.jdbc"/>
<property name="eclipselink.drop-ddl-jdbc-file-name" value="dropMafia_ddlGeneration.jdbc"/>
<property name="eclipselink.ddl-generation.output-mode" value="sql-script"/>
<property name="eclipselink.jdbc.allow-native-sql-queries" value="true"/>
</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@>
<class>org.eclipse.persistence.testing.models.jpa.advanced.multitenant.Boss</class>
<class>org.eclipse.persistence.testing.models.jpa.advanced.multitenant.Capo</class>
<class>org.eclipse.persistence.testing.models.jpa.advanced.multitenant.SubCapo</class>
<class>org.eclipse.persistence.testing.models.jpa.advanced.multitenant.Contract</class>
<class>org.eclipse.persistence.testing.models.jpa.advanced.multitenant.MafiaFamily</class>
<class>org.eclipse.persistence.testing.models.jpa.advanced.multitenant.Mafioso</class>
<class>org.eclipse.persistence.testing.models.jpa.advanced.multitenant.Soldier</class>
<class>org.eclipse.persistence.testing.models.jpa.advanced.multitenant.Underboss</class>
<class>org.eclipse.persistence.testing.models.jpa.advanced.multitenant.Reward</class>
<class>org.eclipse.persistence.testing.models.jpa.advanced.multitenant.Address</class>
<class>org.eclipse.persistence.testing.models.jpa.advanced.multitenant.PhoneNumber</class>
<exclude-unlisted-classes>true</exclude-unlisted-classes>
<properties>
<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.logging.level" value="INFO"/>
<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>
<!--multi-tenant-vpd PU-->
<persistence-unit name="MulitPU-3" transaction-type="@transaction-type@">
<provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
<@datasource-type@>@data-source-name@</@datasource-type@>
</persistence-unit>
<!--multi-tenant-table-per-tenant PU-->
<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.advanced.multitenant.Candidate</class>
<class>org.eclipse.persistence.testing.models.jpa.advanced.multitenant.Supporter</class>
<class>org.eclipse.persistence.testing.models.jpa.advanced.multitenant.SupporterInfo</class>
<class>org.eclipse.persistence.testing.models.jpa.advanced.multitenant.SupporterInfoSub</class>
<class>org.eclipse.persistence.testing.models.jpa.advanced.multitenant.Riding</class>
<class>org.eclipse.persistence.testing.models.jpa.advanced.multitenant.Party</class>
<class>org.eclipse.persistence.testing.models.jpa.advanced.multitenant.Mason</class>
<class>org.eclipse.persistence.testing.models.jpa.advanced.multitenant.Trowel</class>
<exclude-unlisted-classes>true</exclude-unlisted-classes>
<properties>
<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.logging.level" value="INFO"/>
</properties>
</persistence-unit>
<!--multi-tenant-table-per-tenant-C PU-->
<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.advanced.multitenant.Candidate</class>
<class>org.eclipse.persistence.testing.models.jpa.advanced.multitenant.Supporter</class>
<class>org.eclipse.persistence.testing.models.jpa.advanced.multitenant.SupporterInfo</class>
<class>org.eclipse.persistence.testing.models.jpa.advanced.multitenant.SupporterInfoSub</class>
<class>org.eclipse.persistence.testing.models.jpa.advanced.multitenant.Riding</class>
<class>org.eclipse.persistence.testing.models.jpa.advanced.multitenant.Party</class>
<class>org.eclipse.persistence.testing.models.jpa.advanced.multitenant.Mason</class>
<class>org.eclipse.persistence.testing.models.jpa.advanced.multitenant.Trowel</class>
<exclude-unlisted-classes>true</exclude-unlisted-classes>
<properties>
<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.logging.level" value="INFO"/>
<property name="eclipselink.tenant-id" value="C"/>
<property name="eclipselink.multitenant.tenants-share-emf" value="false"/>
<property name="eclipselink.session-name" value="multi-tenant-C"/>
</properties>
</persistence-unit>
</persistence>