Skip to content

Commit

Permalink
Initial attempt at generating the persistence.xml files into the test…
Browse files Browse the repository at this point in the history
… tree (#1447)

* Initial attempt at generating the persistence.xml files into the test tree
Related to #1317

Signed-off-by: Scott M Stark <[email protected]>

* Initial attempt at generating the persistence.xml files into the test tree

Signed-off-by: Scott M Stark <[email protected]>

---------

Signed-off-by: Scott M Stark <[email protected]>
  • Loading branch information
starksm64 authored Aug 16, 2024
1 parent 1e8be36 commit ed93697
Show file tree
Hide file tree
Showing 157 changed files with 8,388 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
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 xmlns="https://jakarta.ee/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://jakarta.ee/xml/ns/persistence https://jakarta.ee/xml/ns/persistence/persistence_3_0.xsd" version="3.0">
<persistence-unit name="CTS-EM" transaction-type="JTA">
<description>Persistence Unit for CTS Vehicle Tests</description>
<jta-data-source>jdbc/DB1</jta-data-source>
<class>ee.jakarta.tck.persistence.ee.entityManager.Order</class>
</persistence-unit>
<persistence-unit name="CTS-EM2" transaction-type="JTA">
<description>Persistence Unit for CTS Vehicle Tests</description>
<jta-data-source>jdbc/DB1</jta-data-source>
<class>ee.jakarta.tck.persistence.ee.entityManager.Order</class>
</persistence-unit>
<persistence-unit name="CTS-EM-NOTX" transaction-type="RESOURCE_LOCAL">
<description>The persistence.xml file may be used to designate
more than one persistence unit within the same scope.
Persistence Unit for Application Managed Resource Local</description>
<non-jta-data-source>jdbc/DB_no_tx</non-jta-data-source>
<class>ee.jakarta.tck.persistence.ee.entityManager.Order</class>
</persistence-unit>
</persistence>

Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
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 xmlns="https://jakarta.ee/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://jakarta.ee/xml/ns/persistence https://jakarta.ee/xml/ns/persistence/persistence_3_0.xsd" version="3.0">
<persistence-unit name="CTS-EM" transaction-type="JTA">
<description>Persistence Unit for CTS Vehicle Tests</description>
<jta-data-source>jdbc/DB1</jta-data-source>
<class>ee.jakarta.tck.persistence.ee.entityManagerFactory.Order</class>
</persistence-unit>
<persistence-unit name="CTS-EM2" transaction-type="JTA">
<description>Persistence Unit for CTS Vehicle Tests</description>
<jta-data-source>jdbc/DB1</jta-data-source>
<class>ee.jakarta.tck.persistence.ee.entityManagerFactory.Order</class>
</persistence-unit>
<persistence-unit name="CTS-EM-NOTX" transaction-type="RESOURCE_LOCAL">
<description>The persistence.xml file may be used to designate
more than one persistence unit within the same scope.
Persistence Unit for Application Managed Resource Local</description>
<non-jta-data-source>jdbc/DB_no_tx</non-jta-data-source>
<class>ee.jakarta.tck.persistence.ee.entityManagerFactory.Order</class>
</persistence-unit>
</persistence>

Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
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 xmlns="https://jakarta.ee/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://jakarta.ee/xml/ns/persistence https://jakarta.ee/xml/ns/persistence/persistence_3_0.xsd" version="3.0">
<persistence-unit name="StandaloneAccountManager" transaction-type="JTA">
<description>Persistence Unit for CTS EE Package Tests</description>
<jta-data-source>jdbc/DB1</jta-data-source>
<class>ee.jakarta.tck.persistence.ee.common.Account</class>
</persistence-unit>
</persistence>

Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
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 xmlns="https://jakarta.ee/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://jakarta.ee/xml/ns/persistence https://jakarta.ee/xml/ns/persistence/persistence_3_0.xsd" version="3.0">
<persistence-unit name="CTS-EXT-UNIT">
<description>Persistence Unit for CTS EE Propagation Tests.
If the transaction-type is not specified,
the default is JTA.</description>
<jta-data-source>jdbc/DB1</jta-data-source>
<class>ee.jakarta.tck.persistence.ee.common.A</class>
<class>ee.jakarta.tck.persistence.ee.common.Account</class>
<class>ee.jakarta.tck.persistence.ee.common.B</class>
</persistence-unit>
</persistence>

Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
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 xmlns="https://jakarta.ee/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://jakarta.ee/xml/ns/persistence https://jakarta.ee/xml/ns/persistence/persistence_3_0.xsd" version="3.0">
<persistence-unit name="CTS-JTA-UNIT" transaction-type="JTA">
<description>Persistence Unit for CTS EE Package Tests</description>
<jta-data-source>jdbc/DB1</jta-data-source>
<class>ee.jakarta.tck.persistence.ee.common.A</class>
<class>ee.jakarta.tck.persistence.ee.common.Account</class>
<class>ee.jakarta.tck.persistence.ee.common.B</class>
</persistence-unit>
<persistence-unit name="CTS-JTA-UNIT2" transaction-type="JTA">
<description>Persistence Unit for CTS EE Package Tests</description>
<jta-data-source>jdbc/DB1</jta-data-source>
<class>ee.jakarta.tck.persistence.ee.common.A</class>
<class>ee.jakarta.tck.persistence.ee.common.Account</class>
<class>ee.jakarta.tck.persistence.ee.common.B</class>
</persistence-unit>
</persistence>

Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
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 xmlns="https://jakarta.ee/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://jakarta.ee/xml/ns/persistence https://jakarta.ee/xml/ns/persistence/persistence_3_0.xsd" version="3.0">
<persistence-unit name="CTS-EM" transaction-type="JTA">
<description>Persistence Unit for CTS Vehicle Tests</description>
<jta-data-source>jdbc/DB1</jta-data-source>
<class>ee.jakarta.tck.persistence.core.EntityGraph.Department</class>
<class>ee.jakarta.tck.persistence.core.EntityGraph.Employee</class>
<class>ee.jakarta.tck.persistence.core.EntityGraph.Employee2</class>
<class>ee.jakarta.tck.persistence.core.EntityGraph.Employee3</class>
</persistence-unit>
<persistence-unit name="CTS-EM2" transaction-type="JTA">
<description>Persistence Unit for CTS Vehicle Tests</description>
<jta-data-source>jdbc/DB1</jta-data-source>
<class>ee.jakarta.tck.persistence.core.EntityGraph.Department</class>
<class>ee.jakarta.tck.persistence.core.EntityGraph.Employee</class>
<class>ee.jakarta.tck.persistence.core.EntityGraph.Employee2</class>
<class>ee.jakarta.tck.persistence.core.EntityGraph.Employee3</class>
</persistence-unit>
<persistence-unit name="CTS-EM-NOTX" transaction-type="RESOURCE_LOCAL">
<description>The persistence.xml file may be used to designate
more than one persistence unit within the same scope.
Persistence Unit for Application Managed Resource Local</description>
<non-jta-data-source>jdbc/DB_no_tx</non-jta-data-source>
<class>ee.jakarta.tck.persistence.core.EntityGraph.Department</class>
<class>ee.jakarta.tck.persistence.core.EntityGraph.Employee</class>
<class>ee.jakarta.tck.persistence.core.EntityGraph.Employee2</class>
<class>ee.jakarta.tck.persistence.core.EntityGraph.Employee3</class>
</persistence-unit>
</persistence>

Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
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 xmlns="https://jakarta.ee/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://jakarta.ee/xml/ns/persistence https://jakarta.ee/xml/ns/persistence/persistence_3_0.xsd" version="3.0">
<persistence-unit name="CTS-EM" transaction-type="JTA">
<description>Persistence Unit for CTS Vehicle Tests</description>
<jta-data-source>jdbc/DB1</jta-data-source>
<mapping-file>myMappingFile.xml</mapping-file>
<class>ee.jakarta.tck.persistence.core.StoredProcedureQuery.Employee</class>
<class>ee.jakarta.tck.persistence.core.StoredProcedureQuery.Employee2</class>
<class>ee.jakarta.tck.persistence.core.StoredProcedureQuery.EmployeeMappedSC</class>
</persistence-unit>
<persistence-unit name="CTS-EM2" transaction-type="JTA">
<description>Persistence Unit for CTS Vehicle Tests</description>
<jta-data-source>jdbc/DB1</jta-data-source>
<mapping-file>myMappingFile.xml</mapping-file>
<class>ee.jakarta.tck.persistence.core.StoredProcedureQuery.Employee</class>
<class>ee.jakarta.tck.persistence.core.StoredProcedureQuery.Employee2</class>
<class>ee.jakarta.tck.persistence.core.StoredProcedureQuery.EmployeeMappedSC</class>
</persistence-unit>
<persistence-unit name="CTS-EM-NOTX" transaction-type="RESOURCE_LOCAL">
<description>The persistence.xml file may be used to designate
more than one persistence unit within the same scope.
Persistence Unit for Application Managed Resource Local</description>
<non-jta-data-source>jdbc/DB_no_tx</non-jta-data-source>
<mapping-file>myMappingFile.xml</mapping-file>
<class>ee.jakarta.tck.persistence.core.StoredProcedureQuery.Employee</class>
<class>ee.jakarta.tck.persistence.core.StoredProcedureQuery.Employee2</class>
<class>ee.jakarta.tck.persistence.core.StoredProcedureQuery.EmployeeMappedSC</class>
</persistence-unit>
</persistence>

Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
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 xmlns="https://jakarta.ee/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://jakarta.ee/xml/ns/persistence https://jakarta.ee/xml/ns/persistence/persistence_3_0.xsd" version="3.0">
<persistence-unit name="CTS-EM" transaction-type="JTA">
<description>Persistence Unit for CTS Vehicle Tests</description>
<jta-data-source>jdbc/DB1</jta-data-source>
<class>ee.jakarta.tck.persistence.core.annotations.access.field.DataTypes</class>
<class>ee.jakarta.tck.persistence.core.annotations.access.field.DataTypes2</class>
<class>ee.jakarta.tck.persistence.core.types.common.Grade</class>
</persistence-unit>
<persistence-unit name="CTS-EM2" transaction-type="JTA">
<description>Persistence Unit for CTS Vehicle Tests</description>
<jta-data-source>jdbc/DB1</jta-data-source>
<class>ee.jakarta.tck.persistence.core.annotations.access.field.DataTypes</class>
<class>ee.jakarta.tck.persistence.core.annotations.access.field.DataTypes2</class>
<class>ee.jakarta.tck.persistence.core.types.common.Grade</class>
</persistence-unit>
<persistence-unit name="CTS-EM-NOTX" transaction-type="RESOURCE_LOCAL">
<description>The persistence.xml file may be used to designate
more than one persistence unit within the same scope.
Persistence Unit for Application Managed Resource Local</description>
<non-jta-data-source>jdbc/DB_no_tx</non-jta-data-source>
<class>ee.jakarta.tck.persistence.core.annotations.access.field.DataTypes</class>
<class>ee.jakarta.tck.persistence.core.annotations.access.field.DataTypes2</class>
<class>ee.jakarta.tck.persistence.core.types.common.Grade</class>
</persistence-unit>
</persistence>

Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
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 xmlns="https://jakarta.ee/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://jakarta.ee/xml/ns/persistence https://jakarta.ee/xml/ns/persistence/persistence_3_0.xsd" version="3.0">
<persistence-unit name="CTS-EM" transaction-type="JTA">
<description>Persistence Unit for CTS Vehicle Tests</description>
<jta-data-source>jdbc/DB1</jta-data-source>
<class>ee.jakarta.tck.persistence.core.annotations.access.mappedsc.AbstractPersonnel</class>
<class>ee.jakarta.tck.persistence.core.annotations.access.mappedsc.Department</class>
<class>ee.jakarta.tck.persistence.core.annotations.access.mappedsc.Employee</class>
<class>ee.jakarta.tck.persistence.core.annotations.access.mappedsc.FullTimeEmployee</class>
<class>ee.jakarta.tck.persistence.core.annotations.access.mappedsc.PartTimeEmployee</class>
<class>ee.jakarta.tck.persistence.core.annotations.access.mappedsc.Project</class>
</persistence-unit>
<persistence-unit name="CTS-EM2" transaction-type="JTA">
<description>Persistence Unit for CTS Vehicle Tests</description>
<jta-data-source>jdbc/DB1</jta-data-source>
<class>ee.jakarta.tck.persistence.core.annotations.access.mappedsc.AbstractPersonnel</class>
<class>ee.jakarta.tck.persistence.core.annotations.access.mappedsc.Department</class>
<class>ee.jakarta.tck.persistence.core.annotations.access.mappedsc.Employee</class>
<class>ee.jakarta.tck.persistence.core.annotations.access.mappedsc.FullTimeEmployee</class>
<class>ee.jakarta.tck.persistence.core.annotations.access.mappedsc.PartTimeEmployee</class>
<class>ee.jakarta.tck.persistence.core.annotations.access.mappedsc.Project</class>
</persistence-unit>
<persistence-unit name="CTS-EM-NOTX" transaction-type="RESOURCE_LOCAL">
<description>The persistence.xml file may be used to designate
more than one persistence unit within the same scope.
Persistence Unit for Application Managed Resource Local</description>
<non-jta-data-source>jdbc/DB_no_tx</non-jta-data-source>
<class>ee.jakarta.tck.persistence.core.annotations.access.mappedsc.AbstractPersonnel</class>
<class>ee.jakarta.tck.persistence.core.annotations.access.mappedsc.Department</class>
<class>ee.jakarta.tck.persistence.core.annotations.access.mappedsc.Employee</class>
<class>ee.jakarta.tck.persistence.core.annotations.access.mappedsc.FullTimeEmployee</class>
<class>ee.jakarta.tck.persistence.core.annotations.access.mappedsc.PartTimeEmployee</class>
<class>ee.jakarta.tck.persistence.core.annotations.access.mappedsc.Project</class>
</persistence-unit>
</persistence>

Loading

0 comments on commit ed93697

Please sign in to comment.