| <!-- |
| |
| Copyright (c) 2019, 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="RESOURCE_LOCAL"> |
| <provider> |
| org.eclipse.persistence.jpa.PersistenceProvider |
| </provider> |
| |
| <!-- mapping files that are packaged in xml-only-model-tests.jar. --> |
| <mapping-file>META-INF/advanced-entity-mappings.xml</mapping-file> |
| <!-- inheritance-entity-mappings.xml is packaged as META-INF/orm.xml |
| to test default listeners are added only once (GF #589) as well as |
| to test that we can read orm.xml from referenced jar(GF #1131) |
| See build.xml for more details. |
| <mapping-file>META-INF/inheritance-entity-mappings.xml</mapping-file--> |
| <mapping-file>META-INF/inherited-entity-mappings.xml</mapping-file> |
| <mapping-file>META-INF/relationships-entity-mappings.xml</mapping-file> |
| <mapping-file>META-INF/unidirectional-relationships-entity-mappings.xml</mapping-file> |
| |
| <!-- mapping files that are packaged in xml-merge-model-tests.jar--> |
| <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/incomplete-nonowning-entity-mappings.xml</mapping-file> |
| <mapping-file>META-INF/incomplete-owning-entity-mappings.xml</mapping-file> |
| |
| <!-- this is here for testing purposes - ensures a persistence unit can load even with a file that does not exist. Please do not add an xml file called: META-INF/non-existant-orm-file.xml --> |
| <mapping-file>META-INF/non-existant-orm-file.xml</mapping-file> |
| |
| <jar-file>eclipselink-xml-only-model.jar</jar-file> |
| <jar-file>eclipselink-xml-merge-model.jar</jar-file> |
| |
| <!-- this is here for testing purposes GF #588, do not remove. --> |
| <class>org.eclipse.persistence.testing.models.jpa.xml.inherited.Beer</class> |
| <exclude-unlisted-classes>false</exclude-unlisted-classes> |
| |
| <properties> |
| <!-- JDBC properties will be given by test.properties file in runtime --> |
| <property name="eclipselink.session-name" value="default-session"/> |
| <property name="eclipselink.jdbc.read-connections.shared" value="true"/> |
| <property name="eclipselink.jdbc.write-connections.min" value="3"/> |
| <property name="eclipselink.jdbc.write-connections.max" value="8"/> |
| <property name="eclipselink.jdbc.read-connections.min" value="3"/> |
| <property name="eclipselink.jdbc.read-connections.max" value="3"/> |
| <property name="eclipselink.cache.size.default" value="500"/> |
| <property name="eclipselink.cache.size.Employee" value="550"/> |
| <property name="eclipselink.cache.size.org.eclipse.persistence.testing.models.jpa.advanced.Address" value="555"/> |
| <property name="eclipselink.cache.type.default" value="Full"/> |
| <property name="eclipselink.cache.type.Employee" value="Weak"/> |
| <property name="eclipselink.cache.type.org.eclipse.persistence.testing.models.jpa.advanced.Address" value="HardWeak"/> |
| <property name="eclipselink.cache.shared.org.eclipse.persistence.testing.models.jpa.relationships.IsolatedItem" value="false"/> |
| <property name="eclipselink.session.customizer" value="org.eclipse.persistence.testing.models.jpa.advanced.Customizer"/> |
| <property name="eclipselink.descriptor.customizer.Employee" value="org.eclipse.persistence.testing.models.jpa.advanced.Customizer"/> |
| <property name="eclipselink.descriptor.customizer.org.eclipse.persistence.testing.models.jpa.advanced.Address" value="org.eclipse.persistence.testing.models.jpa.advanced.Customizer"/> |
| <property name="eclipselink.descriptor.customizer.Project" value="org.eclipse.persistence.testing.models.jpa.advanced.Customizer"/> |
| <property name="eclipselink.persistence-context.reference-mode" value="WEAK"/> |
| <property name="eclipselink.logging.timestamp" value="false"/> |
| <property name="eclipselink.orm.throw.exceptions" value="false"/> |
| <property name="eclipselink.ddl-generation" value="drop-and-create-tables"/> |
| <property name="eclipselink.create-ddl-jdbc-file-name" value="advanced-model-create.jdbc"/> |
| <property name="eclipselink.drop-ddl-jdbc-file-name" value="advanced-model-drop.jdbc"/> |
| <property name="eclipselink.ddl-generation.output-mode" value="sql-script"/> |
| <property name="eclipselink.validate-existence" value="true"/> |
| <!--Uncomment these to test weaving options > |
| <property name="eclipselink.weaving.eager" value="true"/> |
| <property name="eclipselink.weaving.internal" value="false"/--> |
| <property name="eclipselink.orm.validate.schema" value="true"/> |
| <property name="jakarta.persistence.lock.timeout" value="5000"/> |
| <property name="eclipselink.id-validation" value="NEGATIVE"/> |
| <property name="jakarta.persistence.query.timeout" value="20000"/> |
| <property name="NAME" value="Montreal%"/> |
| <!-- Since we don't exclude unlisted classes here, we will --> |
| <!-- eventually hit the multitenant entities which turn native --> |
| <!-- sql queries off by default, so we need to be explicit here --> |
| <!-- and turn them on --> |
| <property name="eclipselink.jdbc.allow-native-sql-queries" value="true"/> |
| <property name="eclipselink.session-event-listener" value="org.eclipse.persistence.testing.models.jpa.inheritance.listeners.SessionListener"/> |
| </properties> |
| </persistence-unit> |
| |
| <persistence-unit name="default1"> |
| <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider> |
| <exclude-unlisted-classes>false</exclude-unlisted-classes> |
| <properties> |
| <property name="eclipselink.logging.level" value="OFF"/> |
| <!-- Since we don't exclude unlisted classes here, we will --> |
| <!-- eventually hit the multitenant entities which turn native --> |
| <!-- sql queries off by default, so we need to be explicit here --> |
| <!-- and turn them on --> |
| <property name="eclipselink.jdbc.allow-native-sql-queries" value="true"/> |
| </properties> |
| </persistence-unit> |
| |
| <persistence-unit name="ignore" transaction-type="JTA"> |
| <description>This PU is for validation purpose only - it should not |
| break the rest of the tests</description> |
| <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider> |
| <jta-data-source>jdbc/__default</jta-data-source> |
| </persistence-unit> |
| |
| <persistence-unit name="isolated1053"> |
| <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider> |
| <class>org.eclipse.persistence.testing.models.jpa.relationships.Item</class> |
| <exclude-unlisted-classes>true</exclude-unlisted-classes> |
| <properties> |
| <property name="eclipselink.session-name" value="isolated-session1053"/> |
| <property name="eclipselink.cache.shared.default" value="false"/> |
| </properties> |
| </persistence-unit> |
| |
| <persistence-unit name="ALL"> |
| <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider> |
| <mapping-file>META-INF/cacheable-entity-mappings.xml</mapping-file> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableFalseEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableFalseDetail</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableFalseDetailWithBackPointer</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableTrueEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableForceProtectedEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableProtectedEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.ChildCacheableFalseEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableTrueMappedSuperclass</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.SubCacheableFalseEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.SubCacheableNoneEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.ProtectedRelationshipsEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.ForceProtectedEntityWithComposite</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.ProtectedEmbeddable</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.SharedEmbeddable</class> |
| <exclude-unlisted-classes>true</exclude-unlisted-classes> |
| <shared-cache-mode>ALL</shared-cache-mode> |
| </persistence-unit> |
| |
| <persistence-unit name="ALL-Property"> |
| <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider> |
| <mapping-file>META-INF/cacheable-entity-mappings.xml</mapping-file> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableFalseEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableFalseDetail</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableFalseDetailWithBackPointer</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableTrueEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableForceProtectedEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableProtectedEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.ChildCacheableFalseEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableTrueMappedSuperclass</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.SubCacheableFalseEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.SubCacheableNoneEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.ProtectedRelationshipsEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.ForceProtectedEntityWithComposite</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.ProtectedEmbeddable</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.SharedEmbeddable</class> |
| <exclude-unlisted-classes>true</exclude-unlisted-classes> |
| <properties> |
| <property name="jakarta.persistence.sharedCache.mode" value="ALL"/> |
| </properties> |
| </persistence-unit> |
| |
| <persistence-unit name="NONE"> |
| <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider> |
| <mapping-file>META-INF/cacheable-entity-mappings.xml</mapping-file> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableFalseEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableFalseDetail</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableFalseDetailWithBackPointer</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableTrueEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableForceProtectedEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableProtectedEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.ChildCacheableFalseEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableTrueMappedSuperclass</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.SubCacheableFalseEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.SubCacheableNoneEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.ProtectedRelationshipsEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.ForceProtectedEntityWithComposite</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.ProtectedEmbeddable</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.SharedEmbeddable</class> |
| <exclude-unlisted-classes>true</exclude-unlisted-classes> |
| <shared-cache-mode>NONE</shared-cache-mode> |
| </persistence-unit> |
| |
| <persistence-unit name="NONE-Property"> |
| <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider> |
| <mapping-file>META-INF/cacheable-entity-mappings.xml</mapping-file> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableFalseEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableFalseDetail</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableFalseDetailWithBackPointer</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableTrueEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableForceProtectedEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableProtectedEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.ChildCacheableFalseEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableTrueMappedSuperclass</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.SubCacheableFalseEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.SubCacheableNoneEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.ProtectedRelationshipsEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.ForceProtectedEntityWithComposite</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.ProtectedEmbeddable</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.SharedEmbeddable</class> |
| <exclude-unlisted-classes>true</exclude-unlisted-classes> |
| <properties> |
| <property name="jakarta.persistence.sharedCache.mode" value="NONE"/> |
| </properties> |
| </persistence-unit> |
| |
| <persistence-unit name="NONE-Property-Conflict"> |
| <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider> |
| <mapping-file>META-INF/cacheable-entity-mappings.xml</mapping-file> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableFalseEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableFalseDetail</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableFalseDetailWithBackPointer</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableTrueEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableForceProtectedEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableProtectedEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.ChildCacheableFalseEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableTrueMappedSuperclass</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.SubCacheableFalseEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.SubCacheableNoneEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.ProtectedRelationshipsEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.ForceProtectedEntityWithComposite</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.ProtectedEmbeddable</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.SharedEmbeddable</class> |
| <exclude-unlisted-classes>true</exclude-unlisted-classes> |
| <shared-cache-mode>ALL</shared-cache-mode> |
| <properties> |
| <property name="jakarta.persistence.sharedCache.mode" value="NONE"/> |
| </properties> |
| </persistence-unit> |
| |
| <persistence-unit name="ENABLE_SELECTIVE"> |
| <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider> |
| <mapping-file>META-INF/cacheable-entity-mappings.xml</mapping-file> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableFalseEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableFalseDetail</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableFalseDetailWithBackPointer</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableTrueEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableForceProtectedEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableProtectedEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.ChildCacheableFalseEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableTrueMappedSuperclass</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.SubCacheableFalseEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.SubCacheableNoneEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.ProtectedRelationshipsEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.ForceProtectedEntityWithComposite</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.ProtectedEmbeddable</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.SharedEmbeddable</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.ProductTrue</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.ProductFalse</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.ProductHardwareTrue</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.ProductHardwareFalse</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.ProductSoftwareTrue</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.ProductSoftwareFalse</class> |
| <exclude-unlisted-classes>true</exclude-unlisted-classes> |
| <shared-cache-mode>ENABLE_SELECTIVE</shared-cache-mode> |
| </persistence-unit> |
| |
| <persistence-unit name="ENABLE_SELECTIVE-Property"> |
| <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider> |
| <mapping-file>META-INF/cacheable-entity-mappings.xml</mapping-file> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableFalseEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableFalseDetail</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableFalseDetailWithBackPointer</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableTrueEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableForceProtectedEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableProtectedEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.ChildCacheableFalseEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableTrueMappedSuperclass</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.SubCacheableFalseEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.SubCacheableNoneEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.ProtectedRelationshipsEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.ForceProtectedEntityWithComposite</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.ProtectedEmbeddable</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.SharedEmbeddable</class> |
| <exclude-unlisted-classes>true</exclude-unlisted-classes> |
| <properties> |
| <property name="jakarta.persistence.sharedCache.mode" value="ENABLE_SELECTIVE"/> |
| </properties> |
| </persistence-unit> |
| |
| <persistence-unit name="DISABLE_SELECTIVE"> |
| <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider> |
| <mapping-file>META-INF/cacheable-entity-mappings.xml</mapping-file> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableFalseEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableFalseDetail</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableFalseDetailWithBackPointer</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableTrueEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableForceProtectedEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableProtectedEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.ChildCacheableFalseEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableTrueMappedSuperclass</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.SubCacheableFalseEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.SubCacheableNoneEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.ProtectedRelationshipsEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.ForceProtectedEntityWithComposite</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.ProtectedEmbeddable</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.SharedEmbeddable</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableRelationshipsEntity</class> |
| <exclude-unlisted-classes>true</exclude-unlisted-classes> |
| <shared-cache-mode>DISABLE_SELECTIVE</shared-cache-mode> |
| </persistence-unit> |
| |
| <persistence-unit name="DISABLE_SELECTIVE-Property"> |
| <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider> |
| <mapping-file>META-INF/cacheable-entity-mappings.xml</mapping-file> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableFalseEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableFalseDetail</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableFalseDetailWithBackPointer</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableTrueEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableForceProtectedEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableProtectedEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.ChildCacheableFalseEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableTrueMappedSuperclass</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.SubCacheableFalseEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.SubCacheableNoneEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.ProtectedRelationshipsEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.ForceProtectedEntityWithComposite</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.ProtectedEmbeddable</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.SharedEmbeddable</class> |
| <exclude-unlisted-classes>true</exclude-unlisted-classes> |
| <properties> |
| <property name="jakarta.persistence.sharedCache.mode" value="DISABLE_SELECTIVE"/> |
| </properties> |
| </persistence-unit> |
| |
| <persistence-unit name="UNSPECIFIED"> |
| <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider> |
| <mapping-file>META-INF/cacheable-entity-mappings.xml</mapping-file> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableFalseEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableFalseDetail</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableFalseDetailWithBackPointer</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableTrueEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableForceProtectedEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableProtectedEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.ChildCacheableFalseEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableTrueMappedSuperclass</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.SubCacheableFalseEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.SubCacheableNoneEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.ProtectedRelationshipsEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.ForceProtectedEntityWithComposite</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.ProtectedEmbeddable</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.SharedEmbeddable</class> |
| <exclude-unlisted-classes>true</exclude-unlisted-classes> |
| <shared-cache-mode>UNSPECIFIED</shared-cache-mode> |
| </persistence-unit> |
| |
| <persistence-unit name="UNSPECIFIED-Property"> |
| <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider> |
| <mapping-file>META-INF/cacheable-entity-mappings.xml</mapping-file> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableFalseEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableFalseDetail</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableFalseDetailWithBackPointer</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableTrueEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableForceProtectedEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableProtectedEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.ChildCacheableFalseEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableTrueMappedSuperclass</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.SubCacheableFalseEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.SubCacheableNoneEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.ProtectedRelationshipsEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.ForceProtectedEntityWithComposite</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.ProtectedEmbeddable</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.SharedEmbeddable</class> |
| <exclude-unlisted-classes>true</exclude-unlisted-classes> |
| <properties> |
| <property name="jakarta.persistence.sharedCache.mode" value="UNSPECIFIED"/> |
| </properties> |
| </persistence-unit> |
| |
| <persistence-unit name="CacheUnlisted"> |
| <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider> |
| <mapping-file>META-INF/cacheable-entity-mappings.xml</mapping-file> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableFalseEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableFalseDetail</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableFalseDetailWithBackPointer</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableTrueEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableForceProtectedEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableProtectedEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.ChildCacheableFalseEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.CacheableTrueMappedSuperclass</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.SubCacheableFalseEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.SubCacheableNoneEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.ProtectedRelationshipsEntity</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.ForceProtectedEntityWithComposite</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.ProtectedEmbeddable</class> |
| <class>org.eclipse.persistence.testing.models.jpa.cacheable.SharedEmbeddable</class> |
| <exclude-unlisted-classes>true</exclude-unlisted-classes> |
| </persistence-unit> |
| |
| <!-- following persistence unit is for CASE_SENSITIVITY testing--> |
| <persistence-unit name="case_sensitivity_pu"> |
| <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider> |
| <mapping-file>META-INF/case-sensitive-advanced-entity-mappings.xml</mapping-file> |
| <exclude-unlisted-classes>false</exclude-unlisted-classes> |
| <properties> |
| <property name="eclipselink.jpa.uppercase-column-names" value="true"/> |
| <!-- Since we don't exclude unlisted classes here, we will --> |
| <!-- eventually hit the multitenant entities which turn native --> |
| <!-- sql queries off by default, so we need to be explicit here --> |
| <!-- and turn them on --> |
| <property name="eclipselink.jdbc.allow-native-sql-queries" value="true"/> |
| </properties> |
| </persistence-unit> |
| |
| <persistence-unit name="METADATA_COMPLETE"> |
| <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider> |
| <mapping-file>META-INF/metadata-complete-mappings.xml</mapping-file> |
| <exclude-unlisted-classes>true</exclude-unlisted-classes> |
| </persistence-unit> |
| |
| <persistence-unit name="XML_MAPPING_METADATA_COMPLETE"> |
| <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider> |
| <mapping-file>META-INF/xml-mapping-metadata-complete-mappings.xml</mapping-file> |
| <exclude-unlisted-classes>true</exclude-unlisted-classes> |
| </persistence-unit> |
| |
| <persistence-unit name="customizeAddTarget"> |
| <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider> |
| <exclude-unlisted-classes>false</exclude-unlisted-classes> |
| <properties> |
| <property name="eclipselink.logging.level" value="OFF"/> |
| <property name="eclipselink.descriptor.customizer.Employee" value="org.eclipse.persistence.testing.models.jpa.advanced.AddTargetCustomizer"/> |
| <!-- Since we don't exclude unlisted classes here, we will --> |
| <!-- eventually hit the multitenant entities which turn native --> |
| <!-- sql queries off by default, so we need to be explicit here --> |
| <!-- and turn them on --> |
| <property name="eclipselink.jdbc.allow-native-sql-queries" value="true"/> |
| </properties> |
| </persistence-unit> |
| |
| <persistence-unit name="multi-tenant-shared-emf"> |
| <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider> |
| <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.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"/> |
| <!-- Since we don't exclude unlisted classes here, we will --> |
| <!-- eventually hit the multitenant entities which turn native --> |
| <!-- sql queries off by default, so we need to be explicit here --> |
| <!-- and turn them on --> |
| <property name="eclipselink.jdbc.allow-native-sql-queries" value="true"/> |
| </properties> |
| </persistence-unit> |
| |
| <persistence-unit name="multi-tenant-123"> |
| <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider> |
| <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="tenant.id" value="123"/> |
| <!-- this one will be appended in the test suite when creating the emf --> |
| <!-- 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="multi-tenant-vpd"> |
| <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider> |
| <mapping-file>META-INF/multitenant-vpd.xml</mapping-file> |
| <exclude-unlisted-classes>true</exclude-unlisted-classes> |
| <properties> |
| <property name="eclipselink.session-name" value="multi-tenant-vpd"/> |
| <property name="eclipselink.ddl-generation" value="drop-and-create-tables"/> |
| <property name="eclipselink.create-ddl-jdbc-file-name" value="createMultitenantVPD_ddlGeneration.jdbc"/> |
| <property name="eclipselink.drop-ddl-jdbc-file-name" value="dropMultitenantVPD_ddlGeneration.jdbc"/> |
| <property name="eclipselink.ddl-generation.output-mode" value="both"/> |
| </properties> |
| </persistence-unit> |
| |
| <persistence-unit name="multi-tenant-table-per-tenant"> |
| <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider> |
| <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> |
| </persistence-unit> |
| |
| <persistence-unit name="multi-tenant-table-per-tenant-C"> |
| <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider> |
| <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.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-unit name="multi-tenant-schema-per-tenant"> |
| <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider> |
| <shared-cache-mode>NONE</shared-cache-mode> |
| <class>org.eclipse.persistence.testing.models.jpa.advanced.Customer</class> |
| <exclude-unlisted-classes>true</exclude-unlisted-classes> |
| <properties> |
| <property name="eclipselink.jdbc.allow-native-sql-queries" value="true"/> |
| </properties> |
| </persistence-unit> |
| |
| <persistence-unit name="additional-criteria"> |
| <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider> |
| <class>org.eclipse.persistence.testing.models.jpa.advanced.additionalcriteria.Person</class> |
| <class>org.eclipse.persistence.testing.models.jpa.advanced.additionalcriteria.Eater</class> |
| <class>org.eclipse.persistence.testing.models.jpa.advanced.additionalcriteria.Food</class> |
| <class>org.eclipse.persistence.testing.models.jpa.advanced.additionalcriteria.Sandwich</class> |
| <class>org.eclipse.persistence.testing.models.jpa.advanced.additionalcriteria.Rabbit</class> |
| <class>org.eclipse.persistence.testing.models.jpa.advanced.additionalcriteria.RabbitFoot</class> |
| <exclude-unlisted-classes>true</exclude-unlisted-classes> |
| <properties> |
| <property name="eclipselink.session-name" value="additional-criteria"/> |
| </properties> |
| </persistence-unit> |
| |
| <persistence-unit name="embeddable"> |
| <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider> |
| <class>org.eclipse.persistence.testing.models.jpa.advanced.embeddable.Visitor</class> |
| <exclude-unlisted-classes>true</exclude-unlisted-classes> |
| </persistence-unit> |
| |
| <persistence-unit name="invalid-named-query"> |
| <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider> |
| <mapping-file>META-INF/orm-invalid-named-query.xml</mapping-file> |
| <class>org.eclipse.persistence.testing.models.jpa.advanced.embeddable.Visitor</class> |
| <exclude-unlisted-classes>true</exclude-unlisted-classes> |
| </persistence-unit> |
| |
| <persistence-unit name="invalid-named-query-tolerate"> |
| <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider> |
| <mapping-file>META-INF/orm-invalid-named-query.xml</mapping-file> |
| <class>org.eclipse.persistence.testing.models.jpa.advanced.embeddable.Visitor</class> |
| <exclude-unlisted-classes>true</exclude-unlisted-classes> |
| <properties> |
| <property name="eclipselink.tolerate-invalid-jpql" value="true"/> |
| </properties> |
| </persistence-unit> |
| |
| <persistence-unit name="invalid-named-query-validation-only"> |
| <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider> |
| <mapping-file>META-INF/orm-invalid-named-query.xml</mapping-file> |
| <class>org.eclipse.persistence.testing.models.jpa.advanced.embeddable.Visitor</class> |
| <exclude-unlisted-classes>true</exclude-unlisted-classes> |
| <properties> |
| <property name="eclipselink.tolerate-invalid-jpql" value="true"/> |
| <property name="eclipselink.validation-only" value="true"/> |
| </properties> |
| </persistence-unit> |
| |
| <!-- Advanced customer model persistence unit. --> |
| <persistence-unit name="customer-pu" transaction-type="RESOURCE_LOCAL"> |
| <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider> |
| <shared-cache-mode>NONE</shared-cache-mode> |
| <class>org.eclipse.persistence.testing.models.jpa.advanced.customer.CustomerAddress</class> |
| <class>org.eclipse.persistence.testing.models.jpa.advanced.customer.AddressType1</class> |
| <class>org.eclipse.persistence.testing.models.jpa.advanced.customer.AddressType2</class> |
| <class>org.eclipse.persistence.testing.models.jpa.advanced.customer.RegisteredCustomer</class> |
| <exclude-unlisted-classes>true</exclude-unlisted-classes> |
| <properties> |
| <property name="eclipselink.logging.level" value="FINE" /> |
| <property name="eclipselink.logging.level.sql" value="FINEST"/> |
| <property name="eclipselink.logging.level.cache" value="FINEST" /> |
| <property name="eclipselink.logging.parameters" value="true"/> |
| <property name="eclipselink.ddl-generation" value="drop-and-create-tables" /> |
| <property name="eclipselink.ddl-generation.output-mode" value="database" /> |
| </properties> |
| </persistence-unit> |
| |
| </persistence> |