Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Aug 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ee.jakarta.tck.persistence.ee.entityManagerFactory.Order looks like a valid (mapped) class reference which in my local #1442 branch looks right.

</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