blob: 87f06bb21a40b0eb46da2928523fbd840132c6e2 [file] [log] [blame]
<!--
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="fieldaccess" transaction-type="RESOURCE_LOCAL">
<provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
<mapping-file>META-INF/static-ref-orm.xml</mapping-file>
<exclude-unlisted-classes>false</exclude-unlisted-classes>
<properties>
<property name="jakarta.persistence.lock.timeout" value="5000"/>
<!--This property is added to test 'querytimeout' property and test is
implemented in 'EntityManagerJUnitTestSuite.testQueryTimeOut()'-->
<property name="jakarta.persistence.query.timeout" value="100000"/>
<property name="jakarta.persistence.jdbc.driver" value="@driverClass@"/>
<property name="jakarta.persistence.jdbc.url" value="@dbURL@"/>
<property name="jakarta.persistence.jdbc.user" value="@dbUser@"/>
<property name="jakarta.persistence.jdbc.password" value="@dbPassword@"/>
<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.fieldaccess.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.fieldaccess.advanced.Address" value="HardWeak"/>
<property name="eclipselink.cache.type.org.eclipse.persistence.testing.models.jpa.advanced.NoIdentityMap" value="None"/>
<property name="eclipselink.session.customizer" value="org.eclipse.persistence.testing.models.jpa.fieldaccess.advanced.Customizer"/>
<property name="eclipselink.descriptor.customizer.Employee" value="org.eclipse.persistence.testing.models.jpa.fieldaccess.advanced.Customizer"/>
<property name="eclipselink.descriptor.customizer.org.eclipse.persistence.testing.models.jpa.fieldaccess.advanced.Address" value="org.eclipse.persistence.testing.models.jpa.fieldaccess.advanced.Customizer"/>
<property name="eclipselink.logging.level" value="INFO"/>
<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.validate-existence" value="true"/>
<property name="eclipselink.orm.validate.schema" value="true"/>
<property name="eclipselink.cache.shared.org.eclipse.persistence.testing.models.jpa.fieldaccess.relationships.IsolatedItem" value="false"/>
</properties>
</persistence-unit>
<persistence-unit name="negative1">
<provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
<exclude-unlisted-classes>false</exclude-unlisted-classes>
<properties>
<property name="eclipselink.jdbc.driver" value="@driverClass@"/>
<property name="eclipselink.jdbc.url" value="@dbURL@"/>
<property name="eclipselink.jdbc.user" value="@dbUser@"/>
<property name="eclipselink.jdbc.password" value="@dbPassword@"/>
<property name="eclipselink.logging.level" value="OFF"/>
</properties>
</persistence-unit>
<persistence-unit name="negative2" transaction-type="RESOURCE_LOCAL">
<provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
<exclude-unlisted-classes>false</exclude-unlisted-classes>
</persistence-unit>
</persistence>