You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltaspike.apache.org by ta...@apache.org on 2023/03/30 12:51:35 UTC

[deltaspike] branch master updated: fixed JPA + Data module

This is an automated email from the ASF dual-hosted git repository.

tandraschko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/deltaspike.git


The following commit(s) were added to refs/heads/master by this push:
     new f44f43e84 fixed JPA + Data module
f44f43e84 is described below

commit f44f43e8460ea83851bba8bf2b2aa8f4b55cbd87
Author: Thomas Andraschko <ta...@apache.org>
AuthorDate: Thu Mar 30 14:51:26 2023 +0200

    fixed JPA + Data module
---
 deltaspike/modules/data/api/pom.xml                |   7 +-
 deltaspike/modules/data/impl/pom.xml               |  14 +-
 .../data/impl/builder/AnnotatedQueryBuilder.java   |   8 +-
 .../data/impl/graph/EntityGraphHelper.java         |   4 +-
 .../deltaspike/data/impl/QueryResultTest.java      |   2 +-
 .../QualifiedEntityManagerTestProducer.java        | 645 ++++++++++++---------
 .../apache/deltaspike/data/test/domain/Parent.java | 180 +++---
 .../test/service/ExtendedRepositoryInterface.java  |  86 +--
 .../data/test/service/FullRepositoryInterface.java |  84 +--
 .../data/test/service/SimpleRepository.java        | 256 ++++----
 deltaspike/modules/data/pom.xml                    |   1 -
 deltaspike/modules/data/test-ee7/pom.xml           | 247 --------
 .../data/test/ee7/domain/EmbeddedSimple.java       |  42 --
 .../deltaspike/data/test/ee7/domain/Flat.java      |  95 ---
 .../deltaspike/data/test/ee7/domain/Garage.java    |  88 ---
 .../deltaspike/data/test/ee7/domain/House.java     | 100 ----
 .../deltaspike/data/test/ee7/domain/Simple.java    | 148 -----
 .../data/test/ee7/domain/SuperSimple.java          |  42 --
 .../deltaspike/data/test/ee7/domain/Tenant.java    |  87 ---
 .../data/test/ee7/graph/HouseRepositoryTest.java   | 220 -------
 .../DeltaSpikeTransactionalRepositoryAbstract.java |  40 --
 ...DeltaSpikeTransactionalRepositoryInterface.java |  41 --
 .../data/test/ee7/service/HouseRepository.java     |  56 --
 .../JtaTransactionalRepositoryAbstract.java        |  96 ---
 .../JtaTransactionalRepositoryInterface.java       |  43 --
 .../data/test/ee7/service/SimpleClientApp.java     |  48 --
 .../data/test/ee7/service/SimpleClientDep.java     |  48 --
 .../data/test/ee7/service/SimpleClientTx.java      |  49 --
 .../data/test/ee7/service/SimpleHolderApp.java     |  46 --
 .../data/test/ee7/service/SimpleHolderDep.java     |  46 --
 .../data/test/ee7/service/SimpleHolderTx.java      |  44 --
 ...taSpikeTransactionalRepositoryAbstractTest.java | 125 ----
 ...aSpikeTransactionalRepositoryInterfaceTest.java | 125 ----
 .../tx/JtaTransactionalRepositoryAbstractTest.java | 257 --------
 .../JtaTransactionalRepositoryInterfaceTest.java   | 140 -----
 .../ee7/tx/TransactionalQueryRunnerWrapper.java    |  66 ---
 .../deltaspike/data/test/ee7/util/Logging.java     |  43 --
 .../data/test/ee7/util/TestDeployments.java        |  62 --
 .../test/resources-glassfish/test-persistence.xml  |  30 -
 .../test/resources-weblogic/test-persistence.xml   |  31 -
 .../test/resources-wildfly/test-persistence.xml    |  27 -
 .../test-ee7/src/test/resources/logging.properties |  32 -
 deltaspike/modules/jpa/api/pom.xml                 |   1 +
 .../jpa/spi/descriptor/xml/DescriptorReader.java   |   6 +-
 .../QualifierBackedEntityManagerResolver.java      |   6 +-
 deltaspike/modules/jpa/impl/pom.xml                |   7 +-
 .../TestPersistenceProviderResolver.java           |  45 ++
 .../test/jpa/api/shared/TestEntityManager.java     |  71 +++
 deltaspike/modules/jpa/pom.xml                     |   4 +-
 deltaspike/modules/pom.xml                         |   6 +-
 deltaspike/parent/pom.xml                          |   9 +
 51 files changed, 825 insertions(+), 3181 deletions(-)

diff --git a/deltaspike/modules/data/api/pom.xml b/deltaspike/modules/data/api/pom.xml
index 045fbbf41..226a23602 100755
--- a/deltaspike/modules/data/api/pom.xml
+++ b/deltaspike/modules/data/api/pom.xml
@@ -45,23 +45,26 @@
     <dependencies>
 
         <dependency>
-            <groupId>org.apache.geronimo.specs</groupId>
-            <artifactId>geronimo-jpa_2.2_spec</artifactId>
+            <groupId>jakarta.persistence</groupId>
+            <artifactId>jakarta.persistence-api</artifactId>
         </dependency>
 
         <dependency>
             <groupId>org.apache.deltaspike.core</groupId>
             <artifactId>deltaspike-core-api</artifactId>
+            <version>${project.version}</version>
         </dependency>
 
         <dependency>
             <groupId>org.apache.deltaspike.modules</groupId>
             <artifactId>deltaspike-partial-bean-module-api</artifactId>
+            <version>${project.version}</version>
         </dependency>
 
         <dependency>
             <groupId>org.apache.deltaspike.modules</groupId>
             <artifactId>deltaspike-jpa-module-api</artifactId>
+            <version>${project.version}</version>
         </dependency>
 
     </dependencies>
diff --git a/deltaspike/modules/data/impl/pom.xml b/deltaspike/modules/data/impl/pom.xml
index 0e52cf6f4..1f2c99600 100755
--- a/deltaspike/modules/data/impl/pom.xml
+++ b/deltaspike/modules/data/impl/pom.xml
@@ -85,7 +85,7 @@
                     <dependency>
                         <groupId>org.hibernate</groupId>
                         <artifactId>hibernate-jpamodelgen</artifactId>
-                        <version>1.2.0.Final</version>
+                        <version>6.2.0.CR4</version>
                     </dependency>
                 </dependencies>
             </plugin>
@@ -95,35 +95,39 @@
     <dependencies>
 
         <dependency>
-            <groupId>org.apache.geronimo.specs</groupId>
-            <artifactId>geronimo-jpa_2.2_spec</artifactId>
+            <groupId>jakarta.persistence</groupId>
+            <artifactId>jakarta.persistence-api</artifactId>
         </dependency>
 
         <dependency>
-            <groupId>org.apache.geronimo.specs</groupId>
-            <artifactId>geronimo-jta_1.1_spec</artifactId>
+            <groupId>jakarta.transaction</groupId>
+            <artifactId>jakarta.transaction-api</artifactId>
         </dependency>
 
         <dependency>
             <groupId>org.apache.deltaspike.modules</groupId>
             <artifactId>deltaspike-data-module-api</artifactId>
+            <version>${project.version}</version>
         </dependency>
 
         <dependency>
             <groupId>org.apache.deltaspike.core</groupId>
             <artifactId>deltaspike-core-impl</artifactId>
+            <version>${project.version}</version>
             <scope>runtime</scope>
         </dependency>
 
         <dependency>
             <groupId>org.apache.deltaspike.modules</groupId>
             <artifactId>deltaspike-partial-bean-module-impl</artifactId>
+            <version>${project.version}</version>
             <scope>runtime</scope>
         </dependency>
         
         <dependency>
             <groupId>org.apache.deltaspike.modules</groupId>
             <artifactId>deltaspike-jpa-module-impl</artifactId>
+            <version>${project.version}</version>
             <scope>compile</scope>
         </dependency>
 
diff --git a/deltaspike/modules/data/impl/src/main/java/org/apache/deltaspike/data/impl/builder/AnnotatedQueryBuilder.java b/deltaspike/modules/data/impl/src/main/java/org/apache/deltaspike/data/impl/builder/AnnotatedQueryBuilder.java
index f1dbd558e..d673ddbca 100644
--- a/deltaspike/modules/data/impl/src/main/java/org/apache/deltaspike/data/impl/builder/AnnotatedQueryBuilder.java
+++ b/deltaspike/modules/data/impl/src/main/java/org/apache/deltaspike/data/impl/builder/AnnotatedQueryBuilder.java
@@ -47,15 +47,15 @@ public class AnnotatedQueryBuilder extends QueryBuilder
     {
         Method method = context.getMethod();
         Query query = method.getAnnotation(Query.class);
-        javax.persistence.Query jpaQuery = createJpaQuery(query, context);
+        jakarta.persistence.Query jpaQuery = createJpaQuery(query, context);
         return context.executeQuery(jpaQuery);
     }
 
-    private javax.persistence.Query createJpaQuery(Query query, CdiQueryInvocationContext context)
+    private jakarta.persistence.Query createJpaQuery(Query query, CdiQueryInvocationContext context)
     {
         EntityManager entityManager = context.getEntityManager();
         Parameters params = context.getParams();
-        javax.persistence.Query result = null;
+        jakarta.persistence.Query result = null;
         if (isNotEmpty(query.named()))
         {
             if (!context.hasQueryStringPostProcessors())
@@ -64,7 +64,7 @@ public class AnnotatedQueryBuilder extends QueryBuilder
             }
             else
             {
-                javax.persistence.Query namedQuery = entityManager.createNamedQuery(query.named());
+                jakarta.persistence.Query namedQuery = entityManager.createNamedQuery(query.named());
                 String named = factory.extract(namedQuery);
                 String jpqlQuery = context.applyQueryStringPostProcessors(named);
                 result = params.applyTo(entityManager.createQuery(jpqlQuery));
diff --git a/deltaspike/modules/data/impl/src/main/java/org/apache/deltaspike/data/impl/graph/EntityGraphHelper.java b/deltaspike/modules/data/impl/src/main/java/org/apache/deltaspike/data/impl/graph/EntityGraphHelper.java
index f869b671f..9881b2dbd 100644
--- a/deltaspike/modules/data/impl/src/main/java/org/apache/deltaspike/data/impl/graph/EntityGraphHelper.java
+++ b/deltaspike/modules/data/impl/src/main/java/org/apache/deltaspike/data/impl/graph/EntityGraphHelper.java
@@ -50,8 +50,8 @@ public final class EntityGraphHelper
 
     static
     {
-        ENTITY_GRAPH_CLASS = ClassUtils.tryToLoadClassForName("javax.persistence.EntityGraph");
-        SUBGRAPH_CLASS = ClassUtils.tryToLoadClassForName("javax.persistence.Subgraph");
+        ENTITY_GRAPH_CLASS = ClassUtils.tryToLoadClassForName("jakarta.persistence.EntityGraph");
+        SUBGRAPH_CLASS = ClassUtils.tryToLoadClassForName("jakarta.persistence.Subgraph");
         if (ENTITY_GRAPH_CLASS == null)
         {
             EG_ADD_ATTRIBUTE_NODES = null;
diff --git a/deltaspike/modules/data/impl/src/test/java/org/apache/deltaspike/data/impl/QueryResultTest.java b/deltaspike/modules/data/impl/src/test/java/org/apache/deltaspike/data/impl/QueryResultTest.java
index c19060b60..bc3aa4750 100644
--- a/deltaspike/modules/data/impl/src/test/java/org/apache/deltaspike/data/impl/QueryResultTest.java
+++ b/deltaspike/modules/data/impl/src/test/java/org/apache/deltaspike/data/impl/QueryResultTest.java
@@ -170,7 +170,7 @@ public class QueryResultTest extends TransactionalTestCase
 
         // when
         List<Simple> result = repo.findByName(name)
-                .hint("javax.persistence.query.timeout", 10000)
+                .hint("jakarta.persistence.query.timeout", 10000)
                 .lockMode(LockModeType.NONE)
                 .flushMode(FlushModeType.COMMIT)
                 .orderDesc(Simple_.counter)
diff --git a/deltaspike/modules/data/impl/src/test/java/org/apache/deltaspike/data/impl/handler/QualifiedEntityManagerTestProducer.java b/deltaspike/modules/data/impl/src/test/java/org/apache/deltaspike/data/impl/handler/QualifiedEntityManagerTestProducer.java
index 9b109c2c8..6f88b6675 100644
--- a/deltaspike/modules/data/impl/src/test/java/org/apache/deltaspike/data/impl/handler/QualifiedEntityManagerTestProducer.java
+++ b/deltaspike/modules/data/impl/src/test/java/org/apache/deltaspike/data/impl/handler/QualifiedEntityManagerTestProducer.java
@@ -1,287 +1,358 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.deltaspike.data.impl.handler;
-
-import java.util.Map;
-
-import jakarta.enterprise.inject.Produces;
-import jakarta.persistence.EntityManager;
-import jakarta.persistence.EntityManagerFactory;
-import jakarta.persistence.EntityTransaction;
-import jakarta.persistence.FlushModeType;
-import jakarta.persistence.LockModeType;
-import jakarta.persistence.Query;
-import jakarta.persistence.TypedQuery;
-import jakarta.persistence.criteria.CriteriaBuilder;
-import jakarta.persistence.criteria.CriteriaQuery;
-import jakarta.persistence.metamodel.Metamodel;
-
-import org.apache.deltaspike.data.test.service.Simplistic;
-
-public class QualifiedEntityManagerTestProducer
-{
-
-    @Produces
-    @Simplistic
-    private final EntityManager entityManager = new EntityManager()
-    {
-
-        @Override
-        public <T> T unwrap(Class<T> arg0)
-        {
-            throw new UnsupportedOperationException();
-        }
-
-        @Override
-        public void setProperty(String arg0, Object arg1)
-        {
-            throw new UnsupportedOperationException();
-        }
-
-        @Override
-        public void setFlushMode(FlushModeType arg0)
-        {
-            throw new UnsupportedOperationException();
-        }
-
-        @Override
-        public void remove(Object arg0)
-        {
-            throw new UnsupportedOperationException();
-        }
-
-        @Override
-        public void refresh(Object arg0, LockModeType arg1, Map<String, Object> arg2)
-        {
-            throw new UnsupportedOperationException();
-        }
-
-        @Override
-        public void refresh(Object arg0, LockModeType arg1)
-        {
-            throw new UnsupportedOperationException();
-        }
-
-        @Override
-        public void refresh(Object arg0, Map<String, Object> arg1)
-        {
-            throw new UnsupportedOperationException();
-        }
-
-        @Override
-        public void refresh(Object arg0)
-        {
-            throw new UnsupportedOperationException();
-        }
-
-        @Override
-        public void persist(Object arg0)
-        {
-            throw new UnsupportedOperationException();
-        }
-
-        @Override
-        public <T> T merge(T arg0)
-        {
-            throw new UnsupportedOperationException();
-        }
-
-        @Override
-        public void lock(Object arg0, LockModeType arg1, Map<String, Object> arg2)
-        {
-            throw new UnsupportedOperationException();
-        }
-
-        @Override
-        public void lock(Object arg0, LockModeType arg1)
-        {
-            throw new UnsupportedOperationException();
-        }
-
-        @Override
-        public void joinTransaction()
-        {
-            throw new UnsupportedOperationException();
-        }
-
-        @Override
-        public boolean isOpen()
-        {
-            throw new UnsupportedOperationException();
-        }
-
-        @Override
-        public EntityTransaction getTransaction()
-        {
-            throw new UnsupportedOperationException();
-        }
-
-        @Override
-        public <T> T getReference(Class<T> arg0, Object arg1)
-        {
-            throw new UnsupportedOperationException();
-        }
-
-        @Override
-        public Map<String, Object> getProperties()
-        {
-            throw new UnsupportedOperationException();
-        }
-
-        @Override
-        public Metamodel getMetamodel()
-        {
-            throw new UnsupportedOperationException();
-        }
-
-        @Override
-        public LockModeType getLockMode(Object arg0)
-        {
-            throw new UnsupportedOperationException();
-        }
-
-        @Override
-        public FlushModeType getFlushMode()
-        {
-            throw new UnsupportedOperationException();
-        }
-
-        @Override
-        public EntityManagerFactory getEntityManagerFactory()
-        {
-            throw new UnsupportedOperationException();
-        }
-
-        @Override
-        public Object getDelegate()
-        {
-            throw new UnsupportedOperationException();
-        }
-
-        @Override
-        public CriteriaBuilder getCriteriaBuilder()
-        {
-            throw new UnsupportedOperationException();
-        }
-
-        @Override
-        public void flush()
-        {
-            throw new UnsupportedOperationException();
-        }
-
-        @Override
-        public <T> T find(Class<T> arg0, Object arg1, LockModeType arg2, Map<String, Object> arg3)
-        {
-            throw new UnsupportedOperationException();
-        }
-
-        @Override
-        public <T> T find(Class<T> arg0, Object arg1, LockModeType arg2)
-        {
-            throw new UnsupportedOperationException();
-        }
-
-        @Override
-        public <T> T find(Class<T> arg0, Object arg1, Map<String, Object> arg2)
-        {
-            throw new UnsupportedOperationException();
-        }
-
-        @Override
-        public <T> T find(Class<T> arg0, Object arg1)
-        {
-            throw new UnsupportedOperationException();
-        }
-
-        @Override
-        public void detach(Object arg0)
-        {
-            throw new UnsupportedOperationException();
-        }
-
-        @Override
-        public <T> TypedQuery<T> createQuery(String arg0, Class<T> arg1)
-        {
-            throw new UnsupportedOperationException();
-        }
-
-        @Override
-        public <T> TypedQuery<T> createQuery(CriteriaQuery<T> arg0)
-        {
-            throw new UnsupportedOperationException();
-        }
-
-        @Override
-        public Query createQuery(String arg0)
-        {
-            throw new UnsupportedOperationException();
-        }
-
-        @Override
-        public Query createNativeQuery(String arg0, String arg1)
-        {
-            throw new UnsupportedOperationException();
-        }
-
-        @SuppressWarnings("rawtypes")
-        @Override
-        public Query createNativeQuery(String arg0, Class arg1)
-        {
-            throw new UnsupportedOperationException();
-        }
-
-        @Override
-        public Query createNativeQuery(String arg0)
-        {
-            throw new UnsupportedOperationException();
-        }
-
-        @Override
-        public <T> TypedQuery<T> createNamedQuery(String arg0, Class<T> arg1)
-        {
-            throw new UnsupportedOperationException();
-        }
-
-        @Override
-        public Query createNamedQuery(String arg0)
-        {
-            throw new UnsupportedOperationException();
-        }
-
-        @Override
-        public boolean contains(Object arg0)
-        {
-            throw new UnsupportedOperationException();
-        }
-
-        @Override
-        public void close()
-        {
-            throw new UnsupportedOperationException();
-        }
-
-        @Override
-        public void clear()
-        {
-            throw new UnsupportedOperationException();
-        }
-    };
-
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.deltaspike.data.impl.handler;
+
+import java.util.Map;
+
+import jakarta.enterprise.inject.Produces;
+import jakarta.persistence.EntityGraph;
+import jakarta.persistence.EntityManager;
+import jakarta.persistence.EntityManagerFactory;
+import jakarta.persistence.EntityTransaction;
+import jakarta.persistence.FlushModeType;
+import jakarta.persistence.LockModeType;
+import jakarta.persistence.Query;
+import jakarta.persistence.StoredProcedureQuery;
+import jakarta.persistence.TypedQuery;
+import jakarta.persistence.criteria.CriteriaBuilder;
+import jakarta.persistence.criteria.CriteriaDelete;
+import jakarta.persistence.criteria.CriteriaQuery;
+import jakarta.persistence.criteria.CriteriaUpdate;
+import jakarta.persistence.metamodel.Metamodel;
+import java.util.List;
+
+import org.apache.deltaspike.data.test.service.Simplistic;
+
+public class QualifiedEntityManagerTestProducer
+{
+
+    @Produces
+    @Simplistic
+    private final EntityManager entityManager = new EntityManager()
+    {
+
+        @Override
+        public <T> T unwrap(Class<T> arg0)
+        {
+            throw new UnsupportedOperationException();
+        }
+
+        @Override
+        public void setProperty(String arg0, Object arg1)
+        {
+            throw new UnsupportedOperationException();
+        }
+
+        @Override
+        public void setFlushMode(FlushModeType arg0)
+        {
+            throw new UnsupportedOperationException();
+        }
+
+        @Override
+        public void remove(Object arg0)
+        {
+            throw new UnsupportedOperationException();
+        }
+
+        @Override
+        public void refresh(Object arg0, LockModeType arg1, Map<String, Object> arg2)
+        {
+            throw new UnsupportedOperationException();
+        }
+
+        @Override
+        public void refresh(Object arg0, LockModeType arg1)
+        {
+            throw new UnsupportedOperationException();
+        }
+
+        @Override
+        public void refresh(Object arg0, Map<String, Object> arg1)
+        {
+            throw new UnsupportedOperationException();
+        }
+
+        @Override
+        public void refresh(Object arg0)
+        {
+            throw new UnsupportedOperationException();
+        }
+
+        @Override
+        public void persist(Object arg0)
+        {
+            throw new UnsupportedOperationException();
+        }
+
+        @Override
+        public <T> T merge(T arg0)
+        {
+            throw new UnsupportedOperationException();
+        }
+
+        @Override
+        public void lock(Object arg0, LockModeType arg1, Map<String, Object> arg2)
+        {
+            throw new UnsupportedOperationException();
+        }
+
+        @Override
+        public void lock(Object arg0, LockModeType arg1)
+        {
+            throw new UnsupportedOperationException();
+        }
+
+        @Override
+        public void joinTransaction()
+        {
+            throw new UnsupportedOperationException();
+        }
+
+        @Override
+        public boolean isOpen()
+        {
+            throw new UnsupportedOperationException();
+        }
+
+        @Override
+        public EntityTransaction getTransaction()
+        {
+            throw new UnsupportedOperationException();
+        }
+
+        @Override
+        public <T> T getReference(Class<T> arg0, Object arg1)
+        {
+            throw new UnsupportedOperationException();
+        }
+
+        @Override
+        public Map<String, Object> getProperties()
+        {
+            throw new UnsupportedOperationException();
+        }
+
+        @Override
+        public Metamodel getMetamodel()
+        {
+            throw new UnsupportedOperationException();
+        }
+
+        @Override
+        public LockModeType getLockMode(Object arg0)
+        {
+            throw new UnsupportedOperationException();
+        }
+
+        @Override
+        public FlushModeType getFlushMode()
+        {
+            throw new UnsupportedOperationException();
+        }
+
+        @Override
+        public EntityManagerFactory getEntityManagerFactory()
+        {
+            throw new UnsupportedOperationException();
+        }
+
+        @Override
+        public Object getDelegate()
+        {
+            throw new UnsupportedOperationException();
+        }
+
+        @Override
+        public CriteriaBuilder getCriteriaBuilder()
+        {
+            throw new UnsupportedOperationException();
+        }
+
+        @Override
+        public void flush()
+        {
+            throw new UnsupportedOperationException();
+        }
+
+        @Override
+        public <T> T find(Class<T> arg0, Object arg1, LockModeType arg2, Map<String, Object> arg3)
+        {
+            throw new UnsupportedOperationException();
+        }
+
+        @Override
+        public <T> T find(Class<T> arg0, Object arg1, LockModeType arg2)
+        {
+            throw new UnsupportedOperationException();
+        }
+
+        @Override
+        public <T> T find(Class<T> arg0, Object arg1, Map<String, Object> arg2)
+        {
+            throw new UnsupportedOperationException();
+        }
+
+        @Override
+        public <T> T find(Class<T> arg0, Object arg1)
+        {
+            throw new UnsupportedOperationException();
+        }
+
+        @Override
+        public void detach(Object arg0)
+        {
+            throw new UnsupportedOperationException();
+        }
+
+        @Override
+        public <T> TypedQuery<T> createQuery(String arg0, Class<T> arg1)
+        {
+            throw new UnsupportedOperationException();
+        }
+
+        @Override
+        public <T> TypedQuery<T> createQuery(CriteriaQuery<T> arg0)
+        {
+            throw new UnsupportedOperationException();
+        }
+
+        @Override
+        public Query createQuery(String arg0)
+        {
+            throw new UnsupportedOperationException();
+        }
+
+        @Override
+        public Query createNativeQuery(String arg0, String arg1)
+        {
+            throw new UnsupportedOperationException();
+        }
+
+        @SuppressWarnings("rawtypes")
+        @Override
+        public Query createNativeQuery(String arg0, Class arg1)
+        {
+            throw new UnsupportedOperationException();
+        }
+
+        @Override
+        public Query createNativeQuery(String arg0)
+        {
+            throw new UnsupportedOperationException();
+        }
+
+        @Override
+        public <T> TypedQuery<T> createNamedQuery(String arg0, Class<T> arg1)
+        {
+            throw new UnsupportedOperationException();
+        }
+
+        @Override
+        public Query createNamedQuery(String arg0)
+        {
+            throw new UnsupportedOperationException();
+        }
+
+        @Override
+        public boolean contains(Object arg0)
+        {
+            throw new UnsupportedOperationException();
+        }
+
+        @Override
+        public void close()
+        {
+            throw new UnsupportedOperationException();
+        }
+
+        @Override
+        public void clear()
+        {
+            throw new UnsupportedOperationException();
+        }
+
+        @Override
+        public Query createQuery(CriteriaUpdate arg0)
+        {
+            throw new UnsupportedOperationException();
+        }
+
+        @Override
+        public Query createQuery(CriteriaDelete arg0)
+        {
+            throw new UnsupportedOperationException();
+        }
+
+        @Override
+        public StoredProcedureQuery createNamedStoredProcedureQuery(String arg0)
+        {
+            throw new UnsupportedOperationException();
+        }
+
+        @Override
+        public StoredProcedureQuery createStoredProcedureQuery(String arg0)
+        {
+            throw new UnsupportedOperationException();
+        }
+
+        @Override
+        public StoredProcedureQuery createStoredProcedureQuery(String arg0, Class... arg1)
+        {
+            throw new UnsupportedOperationException();
+        }
+
+        @Override
+        public StoredProcedureQuery createStoredProcedureQuery(String arg0, String... arg1)
+        {
+            throw new UnsupportedOperationException();
+        }
+
+        @Override
+        public boolean isJoinedToTransaction()
+        {
+            throw new UnsupportedOperationException();
+        }
+
+        @Override
+        public <T> EntityGraph<T> createEntityGraph(Class<T> arg0)
+            {
+            throw new UnsupportedOperationException();
+        }
+
+        @Override
+        public EntityGraph<?> createEntityGraph(String arg0)
+        {
+            throw new UnsupportedOperationException();
+        }
+
+        @Override
+        public EntityGraph<?> getEntityGraph(String arg0)
+        {
+            throw new UnsupportedOperationException();
+        }
+
+        @Override
+        public <T> List<EntityGraph<? super T>> getEntityGraphs(Class<T> arg0)
+        {
+            throw new UnsupportedOperationException();
+        }
+    };
+
+}
diff --git a/deltaspike/modules/data/impl/src/test/java/org/apache/deltaspike/data/test/domain/Parent.java b/deltaspike/modules/data/impl/src/test/java/org/apache/deltaspike/data/test/domain/Parent.java
index fdfef0939..8e699342d 100644
--- a/deltaspike/modules/data/impl/src/test/java/org/apache/deltaspike/data/test/domain/Parent.java
+++ b/deltaspike/modules/data/impl/src/test/java/org/apache/deltaspike/data/test/domain/Parent.java
@@ -1,90 +1,90 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.deltaspike.data.test.domain;
-
-import java.util.LinkedList;
-import java.util.List;
-
-import jakarta.persistence.CascadeType;
-import jakarta.persistence.Entity;
-
-@Entity
-public class Parent extends NamedEntity
-{
-
-    @javax.persistence.OneToOne(cascade = CascadeType.ALL)
-    private OneToOne one;
-
-    @javax.persistence.OneToMany(cascade = CascadeType.ALL, targetEntity = OneToMany.class)
-    private List<OneToMany> many = new LinkedList<OneToMany>();
-
-    private Long value = Long.valueOf(0);
-
-    public Parent()
-    {
-        super();
-    }
-
-    public Parent(String name)
-    {
-        super(name);
-    }
-
-    @Override
-    public String toString()
-    {
-        return "Parent [value=" + value + ", getName()=" + getName() + ", getId()=" + getId() + "]";
-    }
-
-    public void add(OneToMany otm)
-    {
-        many.add(otm);
-    }
-
-    public OneToOne getOne()
-    {
-        return one;
-    }
-
-    public void setOne(OneToOne one)
-    {
-        this.one = one;
-    }
-
-    public List<OneToMany> getMany()
-    {
-        return many;
-    }
-
-    public void setMany(List<OneToMany> many)
-    {
-        this.many = many;
-    }
-
-    public Long getValue()
-    {
-        return value;
-    }
-
-    public void setValue(Long value)
-    {
-        this.value = value;
-    }
-
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.deltaspike.data.test.domain;
+
+import java.util.LinkedList;
+import java.util.List;
+
+import jakarta.persistence.CascadeType;
+import jakarta.persistence.Entity;
+
+@Entity
+public class Parent extends NamedEntity
+{
+
+    @jakarta.persistence.OneToOne(cascade = CascadeType.ALL)
+    private OneToOne one;
+
+    @jakarta.persistence.OneToMany(cascade = CascadeType.ALL, targetEntity = OneToMany.class)
+    private List<OneToMany> many = new LinkedList<OneToMany>();
+
+    private Long value = Long.valueOf(0);
+
+    public Parent()
+    {
+        super();
+    }
+
+    public Parent(String name)
+    {
+        super(name);
+    }
+
+    @Override
+    public String toString()
+    {
+        return "Parent [value=" + value + ", getName()=" + getName() + ", getId()=" + getId() + "]";
+    }
+
+    public void add(OneToMany otm)
+    {
+        many.add(otm);
+    }
+
+    public OneToOne getOne()
+    {
+        return one;
+    }
+
+    public void setOne(OneToOne one)
+    {
+        this.one = one;
+    }
+
+    public List<OneToMany> getMany()
+    {
+        return many;
+    }
+
+    public void setMany(List<OneToMany> many)
+    {
+        this.many = many;
+    }
+
+    public Long getValue()
+    {
+        return value;
+    }
+
+    public void setValue(Long value)
+    {
+        this.value = value;
+    }
+
+}
diff --git a/deltaspike/modules/data/impl/src/test/java/org/apache/deltaspike/data/test/service/ExtendedRepositoryInterface.java b/deltaspike/modules/data/impl/src/test/java/org/apache/deltaspike/data/test/service/ExtendedRepositoryInterface.java
index 7aa7de902..0577d7259 100755
--- a/deltaspike/modules/data/impl/src/test/java/org/apache/deltaspike/data/test/service/ExtendedRepositoryInterface.java
+++ b/deltaspike/modules/data/impl/src/test/java/org/apache/deltaspike/data/test/service/ExtendedRepositoryInterface.java
@@ -1,43 +1,43 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.deltaspike.data.test.service;
-
-import static javax.persistence.LockModeType.PESSIMISTIC_READ;
-
-import org.apache.deltaspike.data.api.EntityManagerDelegate;
-import org.apache.deltaspike.data.api.EntityRepository;
-import org.apache.deltaspike.data.api.Modifying;
-import org.apache.deltaspike.data.api.Query;
-import org.apache.deltaspike.data.api.Repository;
-import org.apache.deltaspike.data.test.domain.Simple;
-
-@Repository
-public interface ExtendedRepositoryInterface extends EntityRepository<Simple, Long>, EntityManagerDelegate<Simple>
-{
-
-    @Query(lock = PESSIMISTIC_READ)
-    Simple findByName(String name);
-
-    @Query(named = Simple.BY_NAME_LIKE)
-    Simple findByNameNoLock(String name);
-
-    @Modifying @Query("delete from Simple")
-    int deleteAll();
-
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.deltaspike.data.test.service;
+
+import static jakarta.persistence.LockModeType.PESSIMISTIC_READ;
+
+import org.apache.deltaspike.data.api.EntityManagerDelegate;
+import org.apache.deltaspike.data.api.EntityRepository;
+import org.apache.deltaspike.data.api.Modifying;
+import org.apache.deltaspike.data.api.Query;
+import org.apache.deltaspike.data.api.Repository;
+import org.apache.deltaspike.data.test.domain.Simple;
+
+@Repository
+public interface ExtendedRepositoryInterface extends EntityRepository<Simple, Long>, EntityManagerDelegate<Simple>
+{
+
+    @Query(lock = PESSIMISTIC_READ)
+    Simple findByName(String name);
+
+    @Query(named = Simple.BY_NAME_LIKE)
+    Simple findByNameNoLock(String name);
+
+    @Modifying @Query("delete from Simple")
+    int deleteAll();
+
+}
diff --git a/deltaspike/modules/data/impl/src/test/java/org/apache/deltaspike/data/test/service/FullRepositoryInterface.java b/deltaspike/modules/data/impl/src/test/java/org/apache/deltaspike/data/test/service/FullRepositoryInterface.java
index 05a7d6e0e..03413f86f 100644
--- a/deltaspike/modules/data/impl/src/test/java/org/apache/deltaspike/data/test/service/FullRepositoryInterface.java
+++ b/deltaspike/modules/data/impl/src/test/java/org/apache/deltaspike/data/test/service/FullRepositoryInterface.java
@@ -1,42 +1,42 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.deltaspike.data.test.service;
-
-import static javax.persistence.LockModeType.PESSIMISTIC_READ;
-
-import org.apache.deltaspike.data.api.FullEntityRepository;
-import org.apache.deltaspike.data.api.Modifying;
-import org.apache.deltaspike.data.api.Query;
-import org.apache.deltaspike.data.api.Repository;
-import org.apache.deltaspike.data.test.domain.Simple;
-
-@Repository
-public interface FullRepositoryInterface extends FullEntityRepository<Simple, Long>
-{
-
-    @Query(lock = PESSIMISTIC_READ)
-    Simple findByName(String name);
-
-    @Query(named = Simple.BY_NAME_LIKE)
-    Simple findByNameNoLock(String name);
-
-    @Modifying @Query("delete from Simple")
-    int deleteAll();
-
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.deltaspike.data.test.service;
+
+import static jakarta.persistence.LockModeType.PESSIMISTIC_READ;
+
+import org.apache.deltaspike.data.api.FullEntityRepository;
+import org.apache.deltaspike.data.api.Modifying;
+import org.apache.deltaspike.data.api.Query;
+import org.apache.deltaspike.data.api.Repository;
+import org.apache.deltaspike.data.test.domain.Simple;
+
+@Repository
+public interface FullRepositoryInterface extends FullEntityRepository<Simple, Long>
+{
+
+    @Query(lock = PESSIMISTIC_READ)
+    Simple findByName(String name);
+
+    @Query(named = Simple.BY_NAME_LIKE)
+    Simple findByNameNoLock(String name);
+
+    @Modifying @Query("delete from Simple")
+    int deleteAll();
+
+}
diff --git a/deltaspike/modules/data/impl/src/test/java/org/apache/deltaspike/data/test/service/SimpleRepository.java b/deltaspike/modules/data/impl/src/test/java/org/apache/deltaspike/data/test/service/SimpleRepository.java
index 972cf3b07..77c0c178b 100755
--- a/deltaspike/modules/data/impl/src/test/java/org/apache/deltaspike/data/test/service/SimpleRepository.java
+++ b/deltaspike/modules/data/impl/src/test/java/org/apache/deltaspike/data/test/service/SimpleRepository.java
@@ -1,128 +1,128 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.deltaspike.data.test.service;
-
-import static javax.persistence.LockModeType.PESSIMISTIC_WRITE;
-import static org.apache.deltaspike.data.api.SingleResultType.ANY;
-import static org.apache.deltaspike.data.api.SingleResultType.OPTIONAL;
-
-import java.util.List;
-
-import jakarta.persistence.EntityManager;
-
-import org.apache.deltaspike.data.api.AbstractEntityRepository;
-import org.apache.deltaspike.data.api.FirstResult;
-import org.apache.deltaspike.data.api.MaxResults;
-import org.apache.deltaspike.data.api.Modifying;
-import org.apache.deltaspike.data.api.Query;
-import org.apache.deltaspike.data.api.QueryParam;
-import org.apache.deltaspike.data.api.QueryResult;
-import org.apache.deltaspike.data.api.Repository;
-import org.apache.deltaspike.data.test.domain.Simple;
-import org.apache.deltaspike.data.test.domain.SimpleStringId;
-
-@Repository
-public abstract class SimpleRepository extends AbstractEntityRepository<Simple, Long>
-{
-
-    public List<Simple> implementedQueryByName(String name)
-    {
-        String query = "select s from Simple s where s.name = :name";
-        return typedQuery(query)
-                .setParameter("name", name)
-                .getResultList();
-    }
-
-    @Query(named = Simple.BY_NAME_ENABLED, max = 1)
-    public abstract List<Simple> findByNamedQueryIndexed(String name, Boolean enabled);
-
-    @Query(named = Simple.BY_NAME_LIKE, singleResult = OPTIONAL)
-    public abstract Simple findByNameOptional(String name);
-
-    @Query(named = Simple.BY_NAME_LIKE, singleResult = ANY)
-    public abstract Simple findByNameAny(String name);
-
-    @Query(named = Simple.BY_NAME_ENABLED)
-    public abstract List<Simple> findByNamedQueryRestricted(String name, Boolean enabled,
-            @MaxResults int max, @FirstResult Integer first);
-
-    @Query(named = Simple.BY_ID, lock = PESSIMISTIC_WRITE)
-    public abstract Simple findByNamedQueryNamed(
-            @QueryParam("id") Long id, @QueryParam("enabled") Boolean enabled);
-
-    @Query("select s from Simple s where s.name = ?1")
-    public abstract Simple findByQuery(String name);
-
-    @Query("select count(s) from Simple s where s.name = ?1")
-    public abstract Long findCountByQuery(String name);
-
-    @Query("select s from Simple s where s.name = ?1 order by s.counter desc")
-    public abstract QueryResult<Simple> findByQueryWithOrderBy(String name);
-
-    public abstract Simple findByNameAndEnabled(String name, Boolean enabled);
-
-    public abstract Simple findByNameLikeIgnoreCase(String name);
-
-    public abstract Simple findByNameIgnoreCase(String name);
-
-    public abstract Simple findOptionalByName(String name);
-
-    public abstract Simple findAnyByName(String name);
-
-    public abstract List<Simple> findFirst2ByName(String name);
-
-    public abstract List<Simple> findTop2ByName(String name);
-
-    public abstract List<Simple> findFirst3OrderByName();
-
-    public abstract List<Simple> findAllOrderByName();
-    
-    public abstract long countByName(String name);
-    
-    public abstract List<Simple> findByOrderByCounterAscIdDesc();
-
-    @Query(value = "SELECT * from SIMPLE_TABLE s WHERE s.name = ?1", isNative = true)
-    public abstract List<Simple> findWithNative(String name);
-
-    @Modifying
-    @Query("update Simple as s set s.name = ?1 where s.id = ?2")
-    public abstract int updateNameForId(String name, Long id);
-
-    @Query(named = Simple.BY_NAME_LIKE)
-    public abstract QueryResult<Simple> queryResultWithNamed(String name);
-
-    @Query("select s from Simple s")
-    public abstract QueryResult<Simple> queryAll();
-
-    public abstract QueryResult<Simple> findByName(String name);
-
-    @Query(named = SimpleStringId.FIND_ALL_ORDER_BY_ID)
-    public abstract QueryResult<SimpleStringId> findAllOrderByIdPaginate(@FirstResult int start, @MaxResults int pageSize);
-
-    public abstract void deleteByName(String name);
-
-    public abstract void removeByName(String name);
-
-    public abstract void deleteByNameAndEnabled(String name, boolean enable);
-
-    public abstract void removeByNameAndEnabled(String name, Boolean aTrue);
-
-    @Override
-    protected abstract EntityManager entityManager();
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.deltaspike.data.test.service;
+
+import static jakarta.persistence.LockModeType.PESSIMISTIC_WRITE;
+import static org.apache.deltaspike.data.api.SingleResultType.ANY;
+import static org.apache.deltaspike.data.api.SingleResultType.OPTIONAL;
+
+import java.util.List;
+
+import jakarta.persistence.EntityManager;
+
+import org.apache.deltaspike.data.api.AbstractEntityRepository;
+import org.apache.deltaspike.data.api.FirstResult;
+import org.apache.deltaspike.data.api.MaxResults;
+import org.apache.deltaspike.data.api.Modifying;
+import org.apache.deltaspike.data.api.Query;
+import org.apache.deltaspike.data.api.QueryParam;
+import org.apache.deltaspike.data.api.QueryResult;
+import org.apache.deltaspike.data.api.Repository;
+import org.apache.deltaspike.data.test.domain.Simple;
+import org.apache.deltaspike.data.test.domain.SimpleStringId;
+
+@Repository
+public abstract class SimpleRepository extends AbstractEntityRepository<Simple, Long>
+{
+
+    public List<Simple> implementedQueryByName(String name)
+    {
+        String query = "select s from Simple s where s.name = :name";
+        return typedQuery(query)
+                .setParameter("name", name)
+                .getResultList();
+    }
+
+    @Query(named = Simple.BY_NAME_ENABLED, max = 1)
+    public abstract List<Simple> findByNamedQueryIndexed(String name, Boolean enabled);
+
+    @Query(named = Simple.BY_NAME_LIKE, singleResult = OPTIONAL)
+    public abstract Simple findByNameOptional(String name);
+
+    @Query(named = Simple.BY_NAME_LIKE, singleResult = ANY)
+    public abstract Simple findByNameAny(String name);
+
+    @Query(named = Simple.BY_NAME_ENABLED)
+    public abstract List<Simple> findByNamedQueryRestricted(String name, Boolean enabled,
+            @MaxResults int max, @FirstResult Integer first);
+
+    @Query(named = Simple.BY_ID, lock = PESSIMISTIC_WRITE)
+    public abstract Simple findByNamedQueryNamed(
+            @QueryParam("id") Long id, @QueryParam("enabled") Boolean enabled);
+
+    @Query("select s from Simple s where s.name = ?1")
+    public abstract Simple findByQuery(String name);
+
+    @Query("select count(s) from Simple s where s.name = ?1")
+    public abstract Long findCountByQuery(String name);
+
+    @Query("select s from Simple s where s.name = ?1 order by s.counter desc")
+    public abstract QueryResult<Simple> findByQueryWithOrderBy(String name);
+
+    public abstract Simple findByNameAndEnabled(String name, Boolean enabled);
+
+    public abstract Simple findByNameLikeIgnoreCase(String name);
+
+    public abstract Simple findByNameIgnoreCase(String name);
+
+    public abstract Simple findOptionalByName(String name);
+
+    public abstract Simple findAnyByName(String name);
+
+    public abstract List<Simple> findFirst2ByName(String name);
+
+    public abstract List<Simple> findTop2ByName(String name);
+
+    public abstract List<Simple> findFirst3OrderByName();
+
+    public abstract List<Simple> findAllOrderByName();
+    
+    public abstract long countByName(String name);
+    
+    public abstract List<Simple> findByOrderByCounterAscIdDesc();
+
+    @Query(value = "SELECT * from SIMPLE_TABLE s WHERE s.name = ?1", isNative = true)
+    public abstract List<Simple> findWithNative(String name);
+
+    @Modifying
+    @Query("update Simple as s set s.name = ?1 where s.id = ?2")
+    public abstract int updateNameForId(String name, Long id);
+
+    @Query(named = Simple.BY_NAME_LIKE)
+    public abstract QueryResult<Simple> queryResultWithNamed(String name);
+
+    @Query("select s from Simple s")
+    public abstract QueryResult<Simple> queryAll();
+
+    public abstract QueryResult<Simple> findByName(String name);
+
+    @Query(named = SimpleStringId.FIND_ALL_ORDER_BY_ID)
+    public abstract QueryResult<SimpleStringId> findAllOrderByIdPaginate(@FirstResult int start, @MaxResults int pageSize);
+
+    public abstract void deleteByName(String name);
+
+    public abstract void removeByName(String name);
+
+    public abstract void deleteByNameAndEnabled(String name, boolean enable);
+
+    public abstract void removeByNameAndEnabled(String name, Boolean aTrue);
+
+    @Override
+    protected abstract EntityManager entityManager();
+}
diff --git a/deltaspike/modules/data/pom.xml b/deltaspike/modules/data/pom.xml
index 480c968ab..7115a038c 100755
--- a/deltaspike/modules/data/pom.xml
+++ b/deltaspike/modules/data/pom.xml
@@ -33,7 +33,6 @@
     <modules>
         <module>api</module>
         <module>impl</module>
-        <module>test-ee7</module>
     </modules>
 
     <properties>
diff --git a/deltaspike/modules/data/test-ee7/pom.xml b/deltaspike/modules/data/test-ee7/pom.xml
deleted file mode 100644
index c78a2d499..000000000
--- a/deltaspike/modules/data/test-ee7/pom.xml
+++ /dev/null
@@ -1,247 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements. See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership. The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License. You may obtain a copy of the License at
-  ~
-  ~ http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied. See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-    <modelVersion>4.0.0</modelVersion>
-
-    <parent>
-        <groupId>org.apache.deltaspike.modules</groupId>
-        <artifactId>data-module-project</artifactId>
-        <version>2.0.0-SNAPSHOT</version>
-    </parent>
-
-    <artifactId>deltaspike-data-module-test-ee7</artifactId>
-    <packaging>jar</packaging>
-
-    <name>Apache DeltaSpike Data-Module Tests on Java EE 7</name>
-
-    <properties>
-        <deploy.skip>true</deploy.skip>
-        <maven.test.skip>true</maven.test.skip>
-    </properties>
-
-    <build>
-        <pluginManagement>
-            <plugins>
-                <plugin>
-                    <groupId>org.apache.maven.plugins</groupId>
-                    <artifactId>maven-surefire-plugin</artifactId>
-                    <configuration>
-                        <argLine>-Xms128m -Xmx1024m</argLine>
-                    </configuration>
-                </plugin>
-            </plugins>
-        </pluginManagement>
-        <plugins>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-deploy-plugin</artifactId>
-                <configuration>
-                    <skip>${deploy.skip}</skip> <!-- we don't deploy our test-modules upstream -->
-                </configuration>
-            </plugin>
-
-        </plugins>
-    </build>
-
-    <dependencies>
-
-        <dependency>
-            <groupId>org.apache.geronimo.specs</groupId>
-            <artifactId>geronimo-jpa_2.1_spec</artifactId>
-            <version>1.0-alpha-1</version>
-            <scope>provided</scope>
-        </dependency>
-
-        <dependency>
-            <groupId>org.apache.geronimo.specs</groupId>
-            <artifactId>geronimo-jta_1.2_spec</artifactId>
-            <version>1.0-alpha-1</version>
-            <scope>provided</scope>
-        </dependency>
-
-        <dependency>
-            <groupId>org.apache.deltaspike.modules</groupId>
-            <artifactId>deltaspike-data-module-api</artifactId>
-            <scope>test</scope>
-        </dependency>
-
-        <dependency>
-            <groupId>org.apache.deltaspike.modules</groupId>
-            <artifactId>deltaspike-data-module-impl</artifactId>
-            <scope>test</scope>
-        </dependency>
-
-        <dependency>
-            <groupId>org.apache.deltaspike.core</groupId>
-            <artifactId>deltaspike-core-impl</artifactId>
-            <scope>test</scope>
-        </dependency>
-
-        <dependency>
-            <groupId>org.apache.deltaspike.modules</groupId>
-            <artifactId>deltaspike-partial-bean-module-impl</artifactId>
-            <scope>test</scope>
-        </dependency>
-        
-        <dependency>
-            <groupId>org.apache.deltaspike.modules</groupId>
-            <artifactId>deltaspike-jpa-module-impl</artifactId>
-            <scope>test</scope>
-        </dependency>
-
-        <!-- Tests -->
-
-        <dependency>
-            <groupId>org.jboss.shrinkwrap.resolver</groupId>
-            <artifactId>shrinkwrap-resolver-impl-maven</artifactId>
-            <scope>test</scope>
-        </dependency>
-        
-        <dependency>
-            <groupId>org.jboss.shrinkwrap.descriptors</groupId>
-            <artifactId>shrinkwrap-descriptors-impl-javaee</artifactId>
-            <scope>test</scope>
-        </dependency>
-
-    </dependencies>
-
-    <profiles>
-        <profile>
-            <!-- This is the profile you need to activate to run EE7 tests at all-->
-            <id>ee7-tests</id>
-
-            <properties>
-                <maven.test.skip>false</maven.test.skip>
-            </properties>
-
-            <build>
-                <plugins>
-                    <plugin>
-                        <groupId>org.bsc.maven</groupId>
-                        <artifactId>maven-processor-plugin</artifactId>
-                        <version>2.0.7</version>
-                        <executions>
-                            <execution>
-                                <id>process-test</id>
-                                <goals>
-                                    <goal>process-test</goal>
-                                </goals>
-                                <phase>generate-test-sources</phase>
-                            </execution>
-                        </executions>
-                        <configuration>
-                            <processors>
-                                <processor>org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor</processor>
-                            </processors>
-                        </configuration>
-                        <dependencies>
-                            <!-- this part of Hibernate is Apache License 2.0, thus O.K. for us. -->
-                            <dependency>
-                                <groupId>org.hibernate</groupId>
-                                <artifactId>hibernate-jpamodelgen</artifactId>
-                                <version>1.2.0.Final</version>
-                            </dependency>
-                        </dependencies>
-                    </plugin>
-                </plugins>
-            </build>
-        </profile>
-
-        <profile>
-            <id>wildfly-build-managed</id>
-            <build>
-                <testResources>
-                    <testResource>
-                        <directory>src/test/resources</directory>
-                    </testResource>
-                    <testResource>
-                        <directory>src/test/resources-wildfly</directory>
-                    </testResource>
-                </testResources>
-            </build>
-        </profile>
-        <profile>
-            <id>wildfly-managed</id>
-            <build>
-                <testResources>
-                    <testResource>
-                        <directory>src/test/resources</directory>
-                    </testResource>
-                    <testResource>
-                        <directory>src/test/resources-wildfly</directory>
-                    </testResource>
-                </testResources>
-            </build>
-        </profile>
-        <profile>
-            <id>wildfly-remote</id>
-            <build>
-                <testResources>
-                    <testResource>
-                        <directory>src/test/resources</directory>
-                    </testResource>
-                    <testResource>
-                        <directory>src/test/resources-wildfly</directory>
-                    </testResource>
-                </testResources>
-            </build>
-        </profile>
-        <profile>
-            <id>glassfish-build-managed-4</id>
-            <build>
-                <testResources>
-                    <testResource>
-                        <directory>src/test/resources</directory>
-                    </testResource>
-                    <testResource>
-                        <directory>src/test/resources-glassfish</directory>
-                    </testResource>
-                </testResources>
-            </build>
-        </profile>
-        <profile>
-            <id>wls-remote-12c</id>
-            <build>
-                <testResources>
-                    <testResource>
-                        <directory>src/test/resources</directory>
-                    </testResource>
-                    <testResource>
-                        <directory>src/test/resources-weblogic</directory>
-                    </testResource>
-                </testResources>
-            </build>
-        </profile>
-        <profile>
-            <id>wls-managed-12c</id>
-            <build>
-                <testResources>
-                    <testResource>
-                        <directory>src/test/resources</directory>
-                    </testResource>
-                    <testResource>
-                        <directory>src/test/resources-weblogic</directory>
-                    </testResource>
-                </testResources>
-            </build>
-        </profile>
-    </profiles>
-
-</project>
diff --git a/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/domain/EmbeddedSimple.java b/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/domain/EmbeddedSimple.java
deleted file mode 100644
index 95471c8ae..000000000
--- a/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/domain/EmbeddedSimple.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.deltaspike.data.test.ee7.domain;
-
-import java.io.Serializable;
-
-import jakarta.persistence.Embeddable;
-
-@Embeddable
-public class EmbeddedSimple implements Serializable
-{
-    private static final long serialVersionUID = 1L;
-
-    private String embedd;
-
-    public String getEmbedd()
-    {
-        return embedd;
-    }
-
-    public void setEmbedd(String embedd)
-    {
-        this.embedd = embedd;
-    }
-
-}
diff --git a/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/domain/Flat.java b/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/domain/Flat.java
deleted file mode 100644
index 112bf8a82..000000000
--- a/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/domain/Flat.java
+++ /dev/null
@@ -1,95 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.deltaspike.data.test.ee7.domain;
-
-import java.io.Serializable;
-import java.util.ArrayList;
-import java.util.List;
-
-import jakarta.persistence.CascadeType;
-import jakarta.persistence.Entity;
-import jakarta.persistence.GeneratedValue;
-import jakarta.persistence.Id;
-import jakarta.persistence.ManyToOne;
-import jakarta.persistence.OneToMany;
-import jakarta.persistence.OrderColumn;
-import jakarta.persistence.Table;
-
-@Entity
-@Table
-public class Flat implements Serializable
-{
-
-    private static final long serialVersionUID = 1L;
-
-    @Id
-    @GeneratedValue
-    private Long id;
-    
-    @OneToMany(mappedBy = "flat", cascade = CascadeType.ALL)
-    @OrderColumn
-    private List<Tenant> tenants = new ArrayList<Tenant>();
-
-    @ManyToOne
-    private House house;
-
-    private String name;
-
-    public String getName()
-    {
-        return name;
-    }
-
-    public void setName(String name)
-    {
-        this.name = name;
-    }
-
-    public Long getId()
-    {
-        return id;
-    }
-
-    public void setId(Long id)
-    {
-        this.id = id;
-    }
-
-    public House getHouse()
-    {
-        return house;
-    }
-
-    public void setHouse(House house)
-    {
-        this.house = house;
-    }
-
-    
-    public List<Tenant> getTenants()
-    {
-        return tenants;
-    }
-
-    
-    public void setTenants(List<Tenant> tenants)
-    {
-        this.tenants = tenants;
-    }
-}
diff --git a/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/domain/Garage.java b/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/domain/Garage.java
deleted file mode 100644
index f50262bfa..000000000
--- a/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/domain/Garage.java
+++ /dev/null
@@ -1,88 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.deltaspike.data.test.ee7.domain;
-
-import java.io.Serializable;
-
-import jakarta.persistence.Entity;
-import jakarta.persistence.GeneratedValue;
-import jakarta.persistence.Id;
-import jakarta.persistence.ManyToOne;
-import jakarta.persistence.OneToOne;
-import jakarta.persistence.Table;
-
-@Entity
-@Table
-public class Garage implements Serializable
-{
-
-    private static final long serialVersionUID = 1L;
-
-    @Id
-    @GeneratedValue
-    private Long id;
-
-    private String name;
-
-    @ManyToOne
-    private House house;
-
-    @OneToOne(optional = true)
-    private Tenant tenant;
-
-    public Long getId()
-    {
-        return id;
-    }
-
-    public void setId(Long id)
-    {
-        this.id = id;
-    }
-
-    public String getName()
-    {
-        return name;
-    }
-
-    public void setName(String name)
-    {
-        this.name = name;
-    }
-
-    public House getHouse()
-    {
-        return house;
-    }
-
-    public void setHouse(House house)
-    {
-        this.house = house;
-    }
-
-    public Tenant getTenant()
-    {
-        return tenant;
-    }
-
-    public void setTenant(Tenant tenant)
-    {
-        this.tenant = tenant;
-    }
-}
diff --git a/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/domain/House.java b/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/domain/House.java
deleted file mode 100644
index 4d1f32f0c..000000000
--- a/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/domain/House.java
+++ /dev/null
@@ -1,100 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.deltaspike.data.test.ee7.domain;
-
-import java.io.Serializable;
-import java.util.ArrayList;
-import java.util.List;
-
-import jakarta.persistence.CascadeType;
-import jakarta.persistence.Entity;
-import jakarta.persistence.GeneratedValue;
-import jakarta.persistence.Id;
-import jakarta.persistence.NamedAttributeNode;
-import jakarta.persistence.NamedEntityGraph;
-import jakarta.persistence.NamedEntityGraphs;
-import jakarta.persistence.OneToMany;
-import jakarta.persistence.OrderColumn;
-import jakarta.persistence.Table;
-
-@NamedEntityGraphs({
-    @NamedEntityGraph(name = "withFlats", attributeNodes = @NamedAttributeNode("flats")),
-    @NamedEntityGraph(name = "withGarages", attributeNodes = @NamedAttributeNode("garages"))
-})
-@Entity
-@Table
-public class House implements Serializable
-{
-
-    private static final long serialVersionUID = 1L;
-
-    @Id
-    @GeneratedValue
-    private Long id;
-
-    private String name;
-
-    @OneToMany(mappedBy = "house", cascade = CascadeType.ALL)
-    @OrderColumn
-    private List<Flat> flats = new ArrayList<Flat>();
-
-    @OneToMany(mappedBy = "house", cascade = CascadeType.ALL)
-    @OrderColumn
-    private List<Garage> garages = new ArrayList<Garage>();
-
-    public Long getId()
-    {
-        return id;
-    }
-
-    public void setId(Long id)
-    {
-        this.id = id;
-    }
-
-    public String getName()
-    {
-        return name;
-    }
-
-    public void setName(String name)
-    {
-        this.name = name;
-    }
-
-    public List<Flat> getFlats()
-    {
-        return flats;
-    }
-
-    public void setFlats(List<Flat> flats)
-    {
-        this.flats = flats;
-    }
-
-    public List<Garage> getGarages()
-    {
-        return garages;
-    }
-
-    public void setGarages(List<Garage> garages)
-    {
-        this.garages = garages;
-    }
-}
diff --git a/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/domain/Simple.java b/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/domain/Simple.java
deleted file mode 100755
index 7838b2ebe..000000000
--- a/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/domain/Simple.java
+++ /dev/null
@@ -1,148 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.deltaspike.data.test.ee7.domain;
-
-import java.util.Date;
-
-import jakarta.persistence.Entity;
-import jakarta.persistence.GeneratedValue;
-import jakarta.persistence.Id;
-import jakarta.persistence.NamedQueries;
-import jakarta.persistence.NamedQuery;
-import jakarta.persistence.Table;
-import jakarta.persistence.Temporal;
-import jakarta.persistence.TemporalType;
-
-@Entity
-@NamedQueries({
-        @NamedQuery(name = Simple.BY_NAME_LIKE,
-                   query = "select e from Simple e where e.name like ?1"),
-        @NamedQuery(name = Simple.BY_NAME_ENABLED,
-                   query = "select s from Simple s where s.name = ?1 and s.enabled = ?2 order by s.id asc"),
-        @NamedQuery(name = Simple.BY_ID,
-                   query = "select s from Simple s where s.id = :id and s.enabled = :enabled")
-})
-@Table(name = "SIMPLE_TABLE")
-public class Simple extends SuperSimple
-{
-    public static final String BY_NAME_LIKE = "simple.byNameLike";
-    public static final String BY_NAME_ENABLED = "simple.byNameAndEnabled";
-    public static final String BY_ID = "simple.byId";
-
-    private static final long serialVersionUID = 1L;
-    
-    @Id
-    @GeneratedValue
-    private Long id;
-
-    private String name;
-    private String camelCase;
-    private Boolean enabled = Boolean.TRUE;
-    private Integer counter = Integer.valueOf(0);
-    @Temporal(TemporalType.TIMESTAMP)
-    private Date temporal;
-    private EmbeddedSimple embedded;
-
-    protected Simple()
-    {
-    }
-
-    public Simple(String name)
-    {
-        this.name = name;
-    }
-
-    public Long getId()
-    {
-        return id;
-    }
-
-    public void setId(Long id)
-    {
-        this.id = id;
-    }
-
-    public String getName()
-    {
-        return name;
-    }
-
-    public void setName(String name)
-    {
-        this.name = name;
-    }
-
-    public Boolean getEnabled()
-    {
-        return enabled;
-    }
-
-    public void setEnabled(Boolean enabled)
-    {
-        this.enabled = enabled;
-    }
-
-    public Integer getCounter()
-    {
-        return counter;
-    }
-
-    public void setCounter(Integer counter)
-    {
-        this.counter = counter;
-    }
-
-    public String getCamelCase()
-    {
-        return camelCase;
-    }
-
-    public void setCamelCase(String camelCase)
-    {
-        this.camelCase = camelCase;
-    }
-
-    public Date getTemporal()
-    {
-        return temporal;
-    }
-
-    public void setTemporal(Date temporal)
-    {
-        this.temporal = temporal;
-    }
-
-    public EmbeddedSimple getEmbedded()
-    {
-        return embedded;
-    }
-
-    public void setEmbedded(EmbeddedSimple embedded)
-    {
-        this.embedded = embedded;
-    }
-
-    @Override
-    public String toString()
-    {
-        return "Simple [id=" + id + ", name=" + name + ", camelCase=" + camelCase + ", enabled=" + enabled
-                + ", counter=" + counter + ", temporal=" + temporal + ", embedded=" + embedded + "]";
-    }
-
-}
diff --git a/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/domain/SuperSimple.java b/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/domain/SuperSimple.java
deleted file mode 100644
index ee2ad031c..000000000
--- a/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/domain/SuperSimple.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.deltaspike.data.test.ee7.domain;
-
-import java.io.Serializable;
-
-import jakarta.persistence.MappedSuperclass;
-
-@MappedSuperclass
-public class SuperSimple implements Serializable
-{
-    private static final long serialVersionUID = 1L;
-
-    private String superName;
-
-    public String getSuperName()
-    {
-        return superName;
-    }
-
-    public void setSuperName(String superName)
-    {
-        this.superName = superName;
-    }
-
-}
diff --git a/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/domain/Tenant.java b/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/domain/Tenant.java
deleted file mode 100644
index c4f15708d..000000000
--- a/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/domain/Tenant.java
+++ /dev/null
@@ -1,87 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.deltaspike.data.test.ee7.domain;
-
-import java.io.Serializable;
-
-import jakarta.persistence.Entity;
-import jakarta.persistence.GeneratedValue;
-import jakarta.persistence.Id;
-import jakarta.persistence.OneToOne;
-import jakarta.persistence.Table;
-
-@Entity
-@Table
-public class Tenant implements Serializable
-{
-
-    private static final long serialVersionUID = 1L;
-
-    @Id
-    @GeneratedValue
-    private Long id;
-
-    private String name;
-
-    @OneToOne(optional = true)
-    private Garage garage;
-
-    @OneToOne(optional = true)
-    private Flat flat;
-
-    public Long getId()
-    {
-        return id;
-    }
-
-    public void setId(Long id)
-    {
-        this.id = id;
-    }
-
-    public String getName()
-    {
-        return name;
-    }
-
-    public void setName(String name)
-    {
-        this.name = name;
-    }
-
-    public Garage getGarage()
-    {
-        return garage;
-    }
-
-    public void setGarage(Garage garage)
-    {
-        this.garage = garage;
-    }
-
-    public Flat getFlat()
-    {
-        return flat;
-    }
-
-    public void setFlat(Flat flat)
-    {
-        this.flat = flat;
-    }
-}
diff --git a/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/graph/HouseRepositoryTest.java b/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/graph/HouseRepositoryTest.java
deleted file mode 100644
index 82904e7e7..000000000
--- a/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/graph/HouseRepositoryTest.java
+++ /dev/null
@@ -1,220 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.deltaspike.data.test.ee7.graph;
-
-import static org.apache.deltaspike.data.test.ee7.util.TestDeployments.initDeployment;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
-
-import java.util.Arrays;
-
-import jakarta.enterprise.inject.Produces;
-import jakarta.inject.Inject;
-import jakarta.persistence.EntityManager;
-import jakarta.persistence.PersistenceContext;
-import jakarta.persistence.PersistenceUnitUtil;
-import jakarta.transaction.UserTransaction;
-
-import org.apache.deltaspike.data.api.QueryInvocationException;
-import org.apache.deltaspike.data.test.ee7.domain.Flat;
-import org.apache.deltaspike.data.test.ee7.domain.Garage;
-import org.apache.deltaspike.data.test.ee7.domain.House;
-import org.apache.deltaspike.data.test.ee7.domain.Tenant;
-import org.apache.deltaspike.data.test.ee7.service.HouseRepository;
-import org.apache.deltaspike.test.category.WebEE7ProfileCategory;
-import org.jboss.arquillian.container.test.api.Deployment;
-import org.jboss.arquillian.junit.Arquillian;
-import org.jboss.arquillian.junit.InSequence;
-import org.jboss.shrinkwrap.api.Archive;
-import org.jboss.shrinkwrap.api.asset.StringAsset;
-import org.junit.Before;
-import org.junit.Test;
-import org.junit.experimental.categories.Category;
-import org.junit.runner.RunWith;
-
-@Category(WebEE7ProfileCategory.class)
-@RunWith(Arquillian.class)
-public class HouseRepositoryTest
-{
-
-    public static String DS_PROPERTIES_WITH_ENV_AWARE_TX_STRATEGY = 
-        "globalAlternatives.org.apache.deltaspike.jpa.spi.transaction.TransactionStrategy="
-            + "org.apache.deltaspike.jpa.impl.transaction.EnvironmentAwareTransactionStrategy";
-
-    @Deployment
-    public static Archive<?> deployment()
-    {
-        return initDeployment()
-            .addClass(HouseRepository.class)
-            .addClasses(House.class, Flat.class, Garage.class, Tenant.class)
-            .addAsWebInfResource(new StringAsset(DS_PROPERTIES_WITH_ENV_AWARE_TX_STRATEGY),
-                "classes/META-INF/apache-deltaspike.properties");
-    }
-
-    @Inject
-    private HouseRepository repository;
-
-    @Inject
-    private UserTransaction tx;
-
-    @Produces
-    @PersistenceContext
-    private EntityManager entityManager;
-
-    private PersistenceUnitUtil puu;
-
-    @Test
-    @InSequence(1)
-    public void should_run_modifying_in_transaction() throws Exception
-    {
-        House house = repository.findByName("Bellevue");
-        assertNotNull(house);
-        assertNotNull(house.getId());
-        assertEquals("Bellevue", house.getName());
-
-        assertTrue(puu.isLoaded(house, "flats"));
-        assertFalse(puu.isLoaded(house, "garages"));
-    }
-
-    @Test
-    @InSequence(2)
-    public void shouldNotLoadLazyAssociationsWithoutGraph() throws Exception
-    {
-        House house = repository.findOptionalByName("Bellevue");
-        assertNotNull(house);
-
-        PersistenceUnitUtil puu = entityManager.getEntityManagerFactory().getPersistenceUnitUtil();
-
-        assertFalse(puu.isLoaded(house, "flats"));
-        assertFalse(puu.isLoaded(house, "garages"));
-    }
-
-    @Test
-    @InSequence(3)
-    public void should_combine_entity_graph_with_explicit_query() throws Exception
-    {
-        House house = repository.fetchByName("Bellevue");
-        assertNotNull(house);
-
-        assertTrue(puu.isLoaded(house, "flats"));
-        assertFalse(puu.isLoaded(house, "garages"));
-    }
-
-    @Test
-    @InSequence(4)
-    public void should_throw_on_invalid_graph() throws Exception
-    {
-        try
-        {
-            repository.fetchByNameWithInvalidGraph("Bellevue");
-            fail("expected QueryInvocationException");
-        }
-        catch (QueryInvocationException e)
-        {
-            assertTrue(e.getCause() instanceof IllegalArgumentException);
-        }
-    }
-
-    @Test
-    @InSequence(5)
-    public void should_build_dynamic_graph_from_paths() throws Exception
-    {
-        House house = repository.fetchByNameWithDynamicGraph("Bellevue");
-        assertNotNull(house);
-
-        assertTrue(puu.isLoaded(house, "flats"));
-        assertTrue(puu.isLoaded(house, "garages"));
-        
-        assertEquals(2, house.getFlats().size());
-        assertEquals(2, house.getGarages().size());
-
-        Flat flat = house.getFlats().get(0);
-        assertFalse(puu.isLoaded(flat, "tenants"));
-    }
-
-    @Test
-    @InSequence(6)
-    public void should_build_dynamic_graph_from_composite_paths() throws Exception
-    {
-        House house = repository.fetchByNameWithFlatTenants("Bellevue");
-        assertNotNull(house);
-
-        assertTrue(puu.isLoaded(house, "flats"));
-        assertTrue(puu.isLoaded(house, "garages"));
-        
-        assertEquals(2, house.getFlats().size());
-        assertEquals(2, house.getGarages().size());
-
-        Flat flat = house.getFlats().get(0);
-        assertTrue(puu.isLoaded(flat, "tenants"));
-        assertEquals(3, flat.getTenants().size());
-    }
-
-    @Before
-    public void init() throws Exception
-    {
-        puu = entityManager.getEntityManagerFactory().getPersistenceUnitUtil();
-
-        // TODO this causes a tx rollback on GlassFish 4 when run in a UserTransaction
-        if (repository.count() == 0)
-        {
-            tx.begin();
-            House house = new House();
-            Flat flat1 = new Flat();
-            flat1.setName("Flat 1");
-            flat1.setHouse(house);
-            
-            Tenant alice = new Tenant();
-            alice.setName("Alice");
-            alice.setFlat(flat1);
-
-            Tenant bob = new Tenant();
-            bob.setName("Bob");
-            bob.setFlat(flat1);
-            
-            Tenant charlie = new Tenant();
-            charlie.setName("Charlie");
-            charlie.setFlat(flat1);
-            
-            flat1.setTenants(Arrays.asList(alice, bob, charlie));
-
-            Flat flat2 = new Flat();
-            flat2.setName("Flat 2");
-            flat2.setHouse(house);
-
-            Garage garageA = new Garage();
-            garageA.setName("Garage A");
-            garageA.setHouse(house);
-
-            Garage garageB = new Garage();
-            garageB.setName("Garage B");
-            garageB.setHouse(house);
-
-            house.setName("Bellevue");
-            house.setFlats(Arrays.asList(flat1, flat2));
-            house.setGarages(Arrays.asList(garageA, garageB));
-
-            entityManager.persist(house);
-            tx.commit();
-        }
-    }
-}
diff --git a/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/service/DeltaSpikeTransactionalRepositoryAbstract.java b/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/service/DeltaSpikeTransactionalRepositoryAbstract.java
deleted file mode 100644
index 56e8b56b2..000000000
--- a/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/service/DeltaSpikeTransactionalRepositoryAbstract.java
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.deltaspike.data.test.ee7.service;
-
-import static javax.persistence.LockModeType.PESSIMISTIC_READ;
-
-import org.apache.deltaspike.data.api.AbstractEntityRepository;
-import org.apache.deltaspike.data.api.Modifying;
-import org.apache.deltaspike.data.api.Query;
-import org.apache.deltaspike.data.api.Repository;
-import org.apache.deltaspike.data.test.ee7.domain.Simple;
-
-@Repository
-@org.apache.deltaspike.jpa.api.transaction.Transactional
-public abstract class DeltaSpikeTransactionalRepositoryAbstract extends AbstractEntityRepository<Simple, Long>
-{
-
-    @Query(lock = PESSIMISTIC_READ)
-    public abstract Simple findByName(String name);
-
-    @Modifying @Query("delete from Simple")
-    public abstract int deleteAll();
-
-}
diff --git a/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/service/DeltaSpikeTransactionalRepositoryInterface.java b/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/service/DeltaSpikeTransactionalRepositoryInterface.java
deleted file mode 100644
index 3e5722e62..000000000
--- a/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/service/DeltaSpikeTransactionalRepositoryInterface.java
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.deltaspike.data.test.ee7.service;
-
-import static javax.persistence.LockModeType.PESSIMISTIC_READ;
-
-import org.apache.deltaspike.data.api.EntityManagerDelegate;
-import org.apache.deltaspike.data.api.EntityRepository;
-import org.apache.deltaspike.data.api.Modifying;
-import org.apache.deltaspike.data.api.Query;
-import org.apache.deltaspike.data.api.Repository;
-import org.apache.deltaspike.data.test.ee7.domain.Simple;
-
-@Repository
-@org.apache.deltaspike.jpa.api.transaction.Transactional
-public interface DeltaSpikeTransactionalRepositoryInterface extends EntityRepository<Simple, Long>, EntityManagerDelegate<Simple>
-{
-
-    @Query(lock = PESSIMISTIC_READ)
-    Simple findByName(String name);
-
-    @Modifying @Query("delete from Simple")
-    int deleteAll();
-
-}
diff --git a/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/service/HouseRepository.java b/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/service/HouseRepository.java
deleted file mode 100644
index e0c6121dc..000000000
--- a/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/service/HouseRepository.java
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.deltaspike.data.test.ee7.service;
-
-import org.apache.deltaspike.data.api.EntityGraph;
-import org.apache.deltaspike.data.api.FullEntityRepository;
-import org.apache.deltaspike.data.api.Modifying;
-import org.apache.deltaspike.data.api.Query;
-import org.apache.deltaspike.data.api.Repository;
-import org.apache.deltaspike.data.test.ee7.domain.House;
-
-@Repository
-@org.apache.deltaspike.jpa.api.transaction.Transactional
-public interface HouseRepository extends FullEntityRepository<House, Long>
-{
-    @EntityGraph("withFlats")
-    House findByName(String name);
-
-    House findOptionalByName(String name);
-    
-    @Query("select h from House h where h.name = ?1")
-    @EntityGraph("withFlats")
-    House fetchByName(String name);
-
-    @Query("select h from House h where h.name = ?1")
-    @EntityGraph("none")
-    House fetchByNameWithInvalidGraph(String name);
-
-    @Query("select h from House h where h.name = ?1")
-    @EntityGraph(paths = {"flats", "garages"})
-    House fetchByNameWithDynamicGraph(String name);
-
-    @Query("select h from House h where h.name = ?1")
-    @EntityGraph(paths = {"flats.tenants", "garages"})
-    House fetchByNameWithFlatTenants(String name);
-
-    @Modifying @Query("delete from House")
-    int deleteAll();
-
-}
diff --git a/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/service/JtaTransactionalRepositoryAbstract.java b/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/service/JtaTransactionalRepositoryAbstract.java
deleted file mode 100644
index 62333f33f..000000000
--- a/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/service/JtaTransactionalRepositoryAbstract.java
+++ /dev/null
@@ -1,96 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.deltaspike.data.test.ee7.service;
-
-import static javax.persistence.LockModeType.PESSIMISTIC_READ;
-
-import jakarta.inject.Inject;
-
-import org.apache.deltaspike.data.api.AbstractEntityRepository;
-import org.apache.deltaspike.data.api.Modifying;
-import org.apache.deltaspike.data.api.Query;
-import org.apache.deltaspike.data.api.Repository;
-import org.apache.deltaspike.data.api.SingleResultType;
-import org.apache.deltaspike.data.test.ee7.domain.Simple;
-
-@Repository
-@javax.transaction.Transactional
-public abstract class JtaTransactionalRepositoryAbstract 
-    extends AbstractEntityRepository<Simple, Long>
-{
-    @Inject
-    private SimpleHolderTx simpleHolderTx;
-
-    @Inject
-    private SimpleHolderApp simpleHolderApp;
-
-    @Inject
-    private SimpleHolderDep simpleHolderDep;
-
-    @Query(lock = PESSIMISTIC_READ, singleResult = SingleResultType.OPTIONAL)
-    public abstract Simple findOptionalByName(String name);
-
-    @Modifying @Query("delete from Simple")
-    public abstract int deleteAll();
-    
-    public Simple saveOnMatchTx(Simple simple)
-    {
-        if (simpleHolderTx.getSimple() == null)
-        {
-            return null;
-        }
-        
-        if (simple.getName().equals(simpleHolderTx.getSimple().getName()))
-        {
-            return save(simple);
-        }
-        
-        return null;
-    }
-
-    public Simple saveOnMatchApp(Simple simple)
-    {
-        if (simpleHolderApp.getSimple() == null)
-        {
-            return null;
-        }
-        
-        if (simple.getName().equals(simpleHolderApp.getSimple().getName()))
-        {
-            return save(simple);
-        }
-        
-        return null;
-    }
-
-    public Simple saveOnMatchDep(Simple simple)
-    {
-        if (simpleHolderDep.getSimple() == null)
-        {
-            return null;
-        }
-        
-        if (simple.getName().equals(simpleHolderDep.getSimple().getName()))
-        {
-            return save(simple);
-        }
-        
-        return null;
-    }
-}
diff --git a/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/service/JtaTransactionalRepositoryInterface.java b/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/service/JtaTransactionalRepositoryInterface.java
deleted file mode 100755
index 4b86559bb..000000000
--- a/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/service/JtaTransactionalRepositoryInterface.java
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.deltaspike.data.test.ee7.service;
-
-import static javax.persistence.LockModeType.PESSIMISTIC_READ;
-
-import org.apache.deltaspike.data.api.EntityRepository;
-import org.apache.deltaspike.data.api.Modifying;
-import org.apache.deltaspike.data.api.Query;
-import org.apache.deltaspike.data.api.Repository;
-import org.apache.deltaspike.data.test.ee7.domain.Simple;
-
-@Repository
-@javax.transaction.Transactional
-public interface JtaTransactionalRepositoryInterface extends EntityRepository<Simple, Long>
-{
-
-    @Query(lock = PESSIMISTIC_READ)
-    Simple findByName(String name);
-
-    @Query(named = Simple.BY_NAME_LIKE)
-    Simple findByNameNoLock(String name);
-
-    @Modifying @Query("delete from Simple")
-    int deleteAll();
-
-}
diff --git a/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/service/SimpleClientApp.java b/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/service/SimpleClientApp.java
deleted file mode 100644
index bb336d284..000000000
--- a/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/service/SimpleClientApp.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.deltaspike.data.test.ee7.service;
-
-import jakarta.enterprise.context.ApplicationScoped;
-import jakarta.inject.Inject;
-
-import org.apache.deltaspike.data.test.ee7.domain.Simple;
-
-@ApplicationScoped
-@javax.transaction.Transactional
-public class SimpleClientApp
-{
-    @Inject
-    private SimpleHolderApp simpleHolder;
-    
-    @Inject
-    private JtaTransactionalRepositoryAbstract repo;
-    
-    public Simple getSimple()
-    {
-        return simpleHolder.getSimple();
-    }
-    
-    public Simple createSimple(String name)
-    {
-        Simple simple = new Simple(name);
-        simpleHolder.setSimple(simple);
-        return repo.saveOnMatchApp(simple);
-    }
-}
diff --git a/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/service/SimpleClientDep.java b/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/service/SimpleClientDep.java
deleted file mode 100644
index fd687e204..000000000
--- a/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/service/SimpleClientDep.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.deltaspike.data.test.ee7.service;
-
-import jakarta.enterprise.context.ApplicationScoped;
-import jakarta.inject.Inject;
-
-import org.apache.deltaspike.data.test.ee7.domain.Simple;
-
-@ApplicationScoped
-@javax.transaction.Transactional
-public class SimpleClientDep
-{
-    @Inject
-    private SimpleHolderDep simpleHolder;
-    
-    @Inject
-    private JtaTransactionalRepositoryAbstract repo;
-    
-    public Simple getSimple()
-    {
-        return simpleHolder.getSimple();
-    }
-    
-    public Simple createSimple(String name)
-    {
-        Simple simple = new Simple(name);
-        simpleHolder.setSimple(simple);
-        return repo.saveOnMatchDep(simple);
-    }
-}
diff --git a/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/service/SimpleClientTx.java b/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/service/SimpleClientTx.java
deleted file mode 100644
index 841c38f4b..000000000
--- a/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/service/SimpleClientTx.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.deltaspike.data.test.ee7.service;
-
-import jakarta.enterprise.context.ApplicationScoped;
-import jakarta.inject.Inject;
-
-import org.apache.deltaspike.data.test.ee7.domain.Simple;
-
-@ApplicationScoped
-@javax.transaction.Transactional
-public class SimpleClientTx
-{
-    @Inject
-    private SimpleHolderTx simpleHolder;
-    
-    @Inject
-    private JtaTransactionalRepositoryAbstract repo;
-    
-    public Simple getSimple()
-    {
-        return simpleHolder.getSimple();
-    }
-    
-    public Simple createSimple(String name)
-    {
-        Simple simple = new Simple(name);
-        simpleHolder.setSimple(simple);
-        return repo.saveOnMatchTx(simple);
-    }
-
-}
diff --git a/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/service/SimpleHolderApp.java b/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/service/SimpleHolderApp.java
deleted file mode 100644
index b7bd6582f..000000000
--- a/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/service/SimpleHolderApp.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.deltaspike.data.test.ee7.service;
-
-import java.io.Serializable;
-
-import jakarta.enterprise.context.ApplicationScoped;
-
-import org.apache.deltaspike.data.test.ee7.domain.Simple;
-
-@ApplicationScoped
-public class SimpleHolderApp implements Serializable
-{
-    private static final long serialVersionUID = 1L;
-
-    private Simple simple;
-
-    
-    public Simple getSimple()
-    {
-        return simple;
-    }
-
-    
-    public void setSimple(Simple simple)
-    {
-        this.simple = simple;
-    }
-}
diff --git a/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/service/SimpleHolderDep.java b/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/service/SimpleHolderDep.java
deleted file mode 100644
index dfb61ba37..000000000
--- a/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/service/SimpleHolderDep.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.deltaspike.data.test.ee7.service;
-
-import java.io.Serializable;
-
-import jakarta.enterprise.context.Dependent;
-
-import org.apache.deltaspike.data.test.ee7.domain.Simple;
-
-@Dependent
-public class SimpleHolderDep implements Serializable
-{
-    private static final long serialVersionUID = 1L;
-
-    private Simple simple;
-
-    
-    public Simple getSimple()
-    {
-        return simple;
-    }
-
-    
-    public void setSimple(Simple simple)
-    {
-        this.simple = simple;
-    }
-}
diff --git a/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/service/SimpleHolderTx.java b/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/service/SimpleHolderTx.java
deleted file mode 100644
index 73780d473..000000000
--- a/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/service/SimpleHolderTx.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.deltaspike.data.test.ee7.service;
-
-import java.io.Serializable;
-
-import org.apache.deltaspike.data.test.ee7.domain.Simple;
-
-@javax.transaction.TransactionScoped
-public class SimpleHolderTx implements Serializable
-{
-    private static final long serialVersionUID = 1L;
-
-    private Simple simple;
-
-    
-    public Simple getSimple()
-    {
-        return simple;
-    }
-
-    
-    public void setSimple(Simple simple)
-    {
-        this.simple = simple;
-    }
-}
diff --git a/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/tx/DeltaSpikeTransactionalRepositoryAbstractTest.java b/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/tx/DeltaSpikeTransactionalRepositoryAbstractTest.java
deleted file mode 100644
index 93325a52d..000000000
--- a/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/tx/DeltaSpikeTransactionalRepositoryAbstractTest.java
+++ /dev/null
@@ -1,125 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.deltaspike.data.test.ee7.tx;
-
-import static org.apache.deltaspike.data.test.ee7.util.TestDeployments.initDeployment;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertTrue;
-
-import jakarta.enterprise.inject.Produces;
-import jakarta.inject.Inject;
-import jakarta.persistence.EntityManager;
-import jakarta.persistence.PersistenceContext;
-
-import org.apache.deltaspike.data.test.ee7.domain.Simple;
-import org.apache.deltaspike.data.test.ee7.service.DeltaSpikeTransactionalRepositoryAbstract;
-import org.apache.deltaspike.test.category.WebEE7ProfileCategory;
-import org.jboss.arquillian.container.test.api.Deployment;
-import org.jboss.arquillian.junit.Arquillian;
-import org.jboss.arquillian.junit.InSequence;
-import org.jboss.shrinkwrap.api.Archive;
-import org.jboss.shrinkwrap.api.asset.StringAsset;
-import org.junit.Before;
-import org.junit.Test;
-import org.junit.experimental.categories.Category;
-import org.junit.runner.RunWith;
-
-@Category(WebEE7ProfileCategory.class)
-@RunWith(Arquillian.class)
-public class DeltaSpikeTransactionalRepositoryAbstractTest
-{
-
-    public static String DS_PROPERTIES_WITH_ENV_AWARE_TX_STRATEGY
-            = "globalAlternatives.org.apache.deltaspike.jpa.spi.transaction.TransactionStrategy="
-            + "org.apache.deltaspike.jpa.impl.transaction.EnvironmentAwareTransactionStrategy";
-    
-    private static final String NAME = "should_run_in_transaction";
-
-    @Deployment
-    public static Archive<?> deployment()
-    {
-        return initDeployment()
-                .addClass(DeltaSpikeTransactionalRepositoryAbstract.class)
-                .addClass(TransactionalQueryRunnerWrapper.class)
-                .addPackage(Simple.class.getPackage())
-                .addAsWebInfResource(new StringAsset(DS_PROPERTIES_WITH_ENV_AWARE_TX_STRATEGY),
-                    "classes/META-INF/apache-deltaspike.properties");
-    }
-
-    @Inject
-    private DeltaSpikeTransactionalRepositoryAbstract repository;
-
-    @Produces
-    @PersistenceContext
-    private EntityManager entityManager;
-
-    @Inject
-    private TransactionalQueryRunnerWrapper wrapper;
-
-    @Test
-    @InSequence(1)
-    public void should_run_modifying_in_transaction() throws Exception
-    {
-        // when
-        repository.deleteAll();
-
-        // then
-        assertTrue(wrapper.isRunInTx());
-    }
-
-    @Test
-    @InSequence(2)
-    public void should_save_in_transaction() throws Exception
-    {
-        // given
-        Simple simple = new Simple(NAME);
-
-        // when
-        simple = repository.save(simple);
-
-        // then
-        assertNotNull(simple.getId());
-        assertTrue(wrapper.isRunInTx());
-    }
-
-    @Test
-    @InSequence(3)
-    public void should_find_with_lockmode_in_transaction() throws Exception
-    {
-        // when
-        Simple simple = repository.findByName(NAME);
-
-        // then
-        assertNotNull(simple);
-        assertTrue(wrapper.isRunInTx());
-    }
-
-    @Test
-    @InSequence(10)
-    public void should_cleanup() throws Exception
-    {
-        repository.deleteAll();
-    }
-
-    @Before
-    public void init()
-    {
-        wrapper.reset();
-    }
-}
diff --git a/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/tx/DeltaSpikeTransactionalRepositoryInterfaceTest.java b/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/tx/DeltaSpikeTransactionalRepositoryInterfaceTest.java
deleted file mode 100644
index 59aca4b00..000000000
--- a/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/tx/DeltaSpikeTransactionalRepositoryInterfaceTest.java
+++ /dev/null
@@ -1,125 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.deltaspike.data.test.ee7.tx;
-
-import static org.apache.deltaspike.data.test.ee7.util.TestDeployments.initDeployment;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertTrue;
-
-import jakarta.enterprise.inject.Produces;
-import jakarta.inject.Inject;
-import jakarta.persistence.EntityManager;
-import jakarta.persistence.PersistenceContext;
-
-import org.apache.deltaspike.data.test.ee7.domain.Simple;
-import org.apache.deltaspike.data.test.ee7.service.DeltaSpikeTransactionalRepositoryInterface;
-import org.apache.deltaspike.test.category.WebEE7ProfileCategory;
-import org.jboss.arquillian.container.test.api.Deployment;
-import org.jboss.arquillian.junit.Arquillian;
-import org.jboss.arquillian.junit.InSequence;
-import org.jboss.shrinkwrap.api.Archive;
-import org.jboss.shrinkwrap.api.asset.StringAsset;
-import org.junit.Before;
-import org.junit.Test;
-import org.junit.experimental.categories.Category;
-import org.junit.runner.RunWith;
-
-@Category(WebEE7ProfileCategory.class)
-@RunWith(Arquillian.class)
-public class DeltaSpikeTransactionalRepositoryInterfaceTest
-{
-
-    public static String DS_PROPERTIES_WITH_ENV_AWARE_TX_STRATEGY
-            = "globalAlternatives.org.apache.deltaspike.jpa.spi.transaction.TransactionStrategy="
-            + "org.apache.deltaspike.jpa.impl.transaction.EnvironmentAwareTransactionStrategy";
-    
-    private static final String NAME = "should_run_in_transaction";
-
-    @Deployment
-    public static Archive<?> deployment()
-    {
-        return initDeployment()
-                .addClass(DeltaSpikeTransactionalRepositoryInterface.class)
-                .addClass(TransactionalQueryRunnerWrapper.class)
-                .addPackage(Simple.class.getPackage())
-                .addAsWebInfResource(new StringAsset(DS_PROPERTIES_WITH_ENV_AWARE_TX_STRATEGY),
-                    "classes/META-INF/apache-deltaspike.properties");
-    }
-
-    @Inject
-    private DeltaSpikeTransactionalRepositoryInterface repository;
-
-    @Produces
-    @PersistenceContext
-    private EntityManager entityManager;
-
-    @Inject
-    private TransactionalQueryRunnerWrapper wrapper;
-
-    @Test
-    @InSequence(1)
-    public void should_run_modifying_in_transaction() throws Exception
-    {
-        // when
-        repository.deleteAll();
-
-        // then
-        assertTrue(wrapper.isRunInTx());
-    }
-
-    @Test
-    @InSequence(2)
-    public void should_save_in_transaction() throws Exception
-    {
-        // given
-        Simple simple = new Simple(NAME);
-
-        // when
-        simple = repository.save(simple);
-
-        // then
-        assertNotNull(simple.getId());
-        assertTrue(wrapper.isRunInTx());
-    }
-
-    @Test
-    @InSequence(3)
-    public void should_find_with_lockmode_in_transaction() throws Exception
-    {
-        // when
-        Simple simple = repository.findByName(NAME);
-
-        // then
-        assertNotNull(simple);
-        assertTrue(wrapper.isRunInTx());
-    }
-
-    @Test
-    @InSequence(10)
-    public void should_cleanup() throws Exception
-    {
-        repository.deleteAll();
-    }
-
-    @Before
-    public void init()
-    {
-        wrapper.reset();
-    }
-}
diff --git a/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/tx/JtaTransactionalRepositoryAbstractTest.java b/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/tx/JtaTransactionalRepositoryAbstractTest.java
deleted file mode 100644
index 6a35a2900..000000000
--- a/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/tx/JtaTransactionalRepositoryAbstractTest.java
+++ /dev/null
@@ -1,257 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.deltaspike.data.test.ee7.tx;
-
-import static org.apache.deltaspike.data.test.ee7.util.TestDeployments.initDeployment;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertNull;
-import static org.junit.Assert.assertTrue;
-
-import jakarta.enterprise.inject.Produces;
-import jakarta.inject.Inject;
-import jakarta.persistence.EntityManager;
-import jakarta.persistence.PersistenceContext;
-
-import org.apache.deltaspike.data.test.ee7.domain.Simple;
-import org.apache.deltaspike.data.test.ee7.service.JtaTransactionalRepositoryAbstract;
-import org.apache.deltaspike.data.test.ee7.service.SimpleClientApp;
-import org.apache.deltaspike.data.test.ee7.service.SimpleClientDep;
-import org.apache.deltaspike.data.test.ee7.service.SimpleClientTx;
-import org.apache.deltaspike.test.category.WebEE7ProfileCategory;
-import org.jboss.arquillian.container.test.api.Deployment;
-import org.jboss.arquillian.junit.Arquillian;
-import org.jboss.arquillian.junit.InSequence;
-import org.jboss.shrinkwrap.api.Archive;
-import org.jboss.shrinkwrap.api.asset.StringAsset;
-import org.junit.Before;
-import org.junit.Ignore;
-import org.junit.Test;
-import org.junit.experimental.categories.Category;
-import org.junit.runner.RunWith;
-
-/**
- * Tests transactional repositories with the {@code javax.transaction.Transactional} interceptor
- * binding and {@code javax.transaction.TransactionScoped} beans.
- * <p>
- * The test uses groups of beans with identical collaboration, only differing by the scope one bean
- * per group ({@code SimpleHolderTx} vs. {@code SimpleHolderApp} vs. {@code SimpleHolderDep} ), to
- * verify that transaction scoped beans actually do behave in a different way, compared to
- * application scoped or dependent beans.
- */
-@Category(WebEE7ProfileCategory.class)
-@RunWith(Arquillian.class)
-@Ignore("Due to injection point issue in Wildfly 10 - DELTASPIKE-1060")
-public class JtaTransactionalRepositoryAbstractTest
-{
-
-    public static String DS_PROPERTIES_WITH_CMT_STRATEGY = "globalAlternatives.org.apache.deltaspike.jpa.spi.transaction.TransactionStrategy="
-        + "org.apache.deltaspike.jpa.impl.transaction.ContainerManagedTransactionStrategy";
-
-    private static final String NAME = "should_run_in_transaction";
-
-    @Deployment
-    public static Archive<?> deployment()
-    {
-        return initDeployment()
-            .addPackage(JtaTransactionalRepositoryAbstract.class.getPackage())
-            .addClass(TransactionalQueryRunnerWrapper.class)
-            .addPackage(Simple.class.getPackage())
-            .addAsWebInfResource(new StringAsset(DS_PROPERTIES_WITH_CMT_STRATEGY),
-                "classes/META-INF/apache-deltaspike.properties");
-
-    }
-
-    @Inject
-    private JtaTransactionalRepositoryAbstract repository;
-
-    @Produces
-    @PersistenceContext
-    private EntityManager entityManager;
-
-    @Inject
-    private TransactionalQueryRunnerWrapper wrapper;
-
-    @Inject
-    private SimpleClientTx simpleClientTx;
-
-    @Inject
-    private SimpleClientApp simpleClientApp;
-
-    @Inject
-    private SimpleClientDep simpleClientDep;
-
-    @Test
-    @InSequence(1)
-    public void should_run_modifying_in_transaction() throws Exception
-    {
-        // when
-        repository.deleteAll();
-
-        // then
-        assertTrue(wrapper.isRunInTx());
-    }
-
-    @Test
-    @InSequence(2)
-    public void should_save_in_transaction() throws Exception
-    {
-        // given
-        Simple simple = new Simple(NAME);
-
-        // when
-        simple = repository.save(simple);
-
-        // then
-        assertNotNull(simple.getId());
-        assertTrue(wrapper.isRunInTx());
-    }
-
-    @Test
-    @InSequence(3)
-    public void should_find_with_lockmode_in_transaction() throws Exception
-    {
-        // when
-        Simple simple = repository.findOptionalByName(NAME);
-
-        // then
-        assertNotNull(simple);
-        assertTrue(wrapper.isRunInTx());
-    }
-
-    @Test
-    @InSequence(10)
-    public void tx_scoped_bean_should_be_empty_before_tx() throws Exception
-    {
-        // when
-        Simple simple = simpleClientTx.getSimple();
-
-        // then
-        assertNull(simple);
-    }
-
-    @Test
-    @InSequence(11)
-    public void should_save_when_tx_scoped_bean_is_found() throws Exception
-    {
-        // when
-        Simple simple = simpleClientTx.createSimple("transaction scoped");
-        Simple found = repository.findOptionalByName("transaction scoped");
-
-        // then
-        assertNotNull(simple);
-        assertNotNull(found);
-        assertEquals("transaction scoped", found.getName());
-    }
-
-    @Test
-    @InSequence(12)
-    public void tx_scoped_bean_should_be_empty_after_tx() throws Exception
-    {
-        // when
-        Simple simple = simpleClientTx.getSimple();
-
-        // then
-        assertNull(simple);
-    }
-
-    @Test
-    @InSequence(20)
-    public void app_scoped_bean_should_be_empty_before_tx() throws Exception
-    {
-        // when
-        Simple simple = simpleClientApp.getSimple();
-
-        // then
-        assertNull(simple);
-    }
-
-    @Test
-    @InSequence(21)
-    public void should_save_when_app_scoped_bean_is_found() throws Exception
-    {
-        // when
-        Simple simple = simpleClientApp.createSimple("application scoped");
-        Simple found = repository.findOptionalByName("application scoped");
-
-        // then
-        assertNotNull(simple);
-        assertNotNull(found);
-        assertEquals("application scoped", found.getName());
-    }
-
-    @Test
-    @InSequence(22)
-    public void app_scoped_bean_should_not_be_empty_after_tx() throws Exception
-    {
-        // when
-        Simple simple = simpleClientApp.getSimple();
-
-        // then
-        assertNotNull(simple);
-    }
-
-    @Test
-    @InSequence(30)
-    public void dep_scoped_bean_should_be_empty_before_tx() throws Exception
-    {
-        // when
-        Simple simple = simpleClientDep.getSimple();
-
-        // then
-        assertNull(simple);
-    }
-
-    @Test
-    @InSequence(31)
-    public void should_save_when_dep_scoped_bean_is_found() throws Exception
-    {
-        // when
-        Simple simple = simpleClientDep.createSimple("dependent");
-        Simple found = repository.findOptionalByName("dependent");
-
-        // then
-        assertNull(simple);
-        assertNull(found);
-    }
-
-    @Test
-    @InSequence(32)
-    public void dep_scoped_bean_should_be_empty_after_tx() throws Exception
-    {
-        // when
-        Simple simple = simpleClientDep.getSimple();
-
-        // then
-        assertNotNull(simple);
-    }
-
-    @Test
-    @InSequence(100)
-    public void should_cleanup() throws Exception
-    {
-        repository.deleteAll();
-    }
-
-    @Before
-    public void init()
-    {
-        wrapper.reset();
-    }
-}
diff --git a/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/tx/JtaTransactionalRepositoryInterfaceTest.java b/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/tx/JtaTransactionalRepositoryInterfaceTest.java
deleted file mode 100644
index 9af12387d..000000000
--- a/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/tx/JtaTransactionalRepositoryInterfaceTest.java
+++ /dev/null
@@ -1,140 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.deltaspike.data.test.ee7.tx;
-
-import static org.apache.deltaspike.data.test.ee7.util.TestDeployments.initDeployment;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertTrue;
-
-import jakarta.enterprise.inject.Produces;
-import jakarta.inject.Inject;
-import jakarta.persistence.EntityManager;
-import jakarta.persistence.PersistenceContext;
-
-import org.apache.deltaspike.data.test.ee7.domain.Simple;
-import org.apache.deltaspike.data.test.ee7.service.JtaTransactionalRepositoryInterface;
-import org.apache.deltaspike.test.category.WebEE7ProfileCategory;
-import org.jboss.arquillian.container.test.api.Deployment;
-import org.jboss.arquillian.junit.Arquillian;
-import org.jboss.arquillian.junit.InSequence;
-import org.jboss.shrinkwrap.api.Archive;
-import org.jboss.shrinkwrap.api.asset.StringAsset;
-import org.junit.Before;
-import org.junit.Ignore;
-import org.junit.Test;
-import org.junit.experimental.categories.Category;
-import org.junit.runner.RunWith;
-
-@Category(WebEE7ProfileCategory.class)
-@RunWith(Arquillian.class)
-@Ignore("Due to injection point issue in Wildfly 10 - DELTASPIKE-1060")
-public class JtaTransactionalRepositoryInterfaceTest
-{
-
-    public static String DS_PROPERTIES_WITH_CMT_STRATEGY
-        = "globalAlternatives.org.apache.deltaspike.jpa.spi.transaction.TransactionStrategy="
-        + "org.apache.deltaspike.jpa.impl.transaction.ContainerManagedTransactionStrategy";
-
-    private static final String NAME = "should_run_in_transaction";
-
-    @Deployment
-    public static Archive<?> deployment()
-    {
-        return initDeployment()
-                .addClass(JtaTransactionalRepositoryInterface.class)
-                .addClass(TransactionalQueryRunnerWrapper.class)
-                .addPackage(Simple.class.getPackage())
-                .addAsWebInfResource(new StringAsset(DS_PROPERTIES_WITH_CMT_STRATEGY),
-                    "classes/META-INF/apache-deltaspike.properties");
-                
-    }
-
-    @Inject
-    private JtaTransactionalRepositoryInterface repository;
-
-    @Produces
-    @PersistenceContext
-    private EntityManager entityManager;
-
-    @Inject
-    private TransactionalQueryRunnerWrapper wrapper;
-
-    @Test
-    @InSequence(1)
-    public void should_run_modifying_in_transaction() throws Exception
-    {
-        // when
-        repository.deleteAll();
-
-        // then
-        assertTrue(wrapper.isRunInTx());
-    }
-
-    @Test
-    @InSequence(2)
-    public void should_save_in_transaction() throws Exception
-    {
-        // given
-        Simple simple = new Simple(NAME);
-
-        // when
-        simple = repository.save(simple);
-
-        // then
-        assertNotNull(simple.getId());
-        assertTrue(wrapper.isRunInTx());
-    }
-
-    @Test
-    @InSequence(3)
-    public void should_find_with_lockmode_in_transaction() throws Exception
-    {
-        // when
-        Simple simple = repository.findByName(NAME);
-
-        // then
-        assertNotNull(simple);
-        assertTrue(wrapper.isRunInTx());
-    }
-
-    @Test
-    @InSequence(4)
-    public void should_find_no_lock_without_transaction() throws Exception
-    {
-        // when
-        Simple simple = repository.findByNameNoLock(NAME);
-
-        // then
-        assertNotNull(simple);
-        assertTrue(wrapper.isRunInNonTx());
-    }
-
-    @Test
-    @InSequence(10)
-    public void should_cleanup() throws Exception
-    {
-        repository.deleteAll();
-    }
-
-    @Before
-    public void init()
-    {
-        wrapper.reset();
-    }
-}
diff --git a/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/tx/TransactionalQueryRunnerWrapper.java b/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/tx/TransactionalQueryRunnerWrapper.java
deleted file mode 100644
index 6d4afd525..000000000
--- a/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/tx/TransactionalQueryRunnerWrapper.java
+++ /dev/null
@@ -1,66 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.deltaspike.data.test.ee7.tx;
-
-import jakarta.enterprise.context.ApplicationScoped;
-import jakarta.enterprise.inject.Specializes;
-
-import org.apache.deltaspike.data.impl.builder.QueryBuilder;
-import org.apache.deltaspike.data.impl.handler.CdiQueryInvocationContext;
-import org.apache.deltaspike.data.impl.tx.TransactionalQueryRunner;
-
-@Specializes
-@ApplicationScoped
-public class TransactionalQueryRunnerWrapper extends TransactionalQueryRunner
-{
-
-    private boolean runInTx = false;
-    private boolean runInNonTx = false;
-
-    public void reset()
-    {
-        runInTx = false;
-        runInNonTx = false;
-    }
-
-    @Override
-    protected Object executeNonTransactional(QueryBuilder builder, CdiQueryInvocationContext context)
-    {
-        runInNonTx = true;
-        return super.executeNonTransactional(builder, context);
-    }
-
-    @Override
-    protected Object executeTransactional(QueryBuilder builder, CdiQueryInvocationContext context) throws Exception
-    {
-        runInTx = true;
-        return super.executeTransactional(builder, context);
-    }
-
-    public boolean isRunInTx()
-    {
-        return runInTx;
-    }
-
-    public boolean isRunInNonTx()
-    {
-        return runInNonTx;
-    }
-
-}
diff --git a/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/util/Logging.java b/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/util/Logging.java
deleted file mode 100755
index 51dedadf6..000000000
--- a/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/util/Logging.java
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.deltaspike.data.test.ee7.util;
-
-import java.io.InputStream;
-import java.util.logging.LogManager;
-
-public class Logging
-{
-
-    private Logging()
-    {
-    }
-
-    public static void reconfigure()
-    {
-        try
-        {
-            InputStream loggingProperties = Logging.class.getClassLoader().getResourceAsStream("logging.properties");
-            LogManager.getLogManager().readConfiguration(loggingProperties);
-        }
-        catch (Exception e)
-        {
-            throw new RuntimeException("Failed to reconfigure Java Logging.", e);
-        }
-    }
-}
diff --git a/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/util/TestDeployments.java b/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/util/TestDeployments.java
deleted file mode 100755
index 2198a055b..000000000
--- a/deltaspike/modules/data/test-ee7/src/test/java/org/apache/deltaspike/data/test/ee7/util/TestDeployments.java
+++ /dev/null
@@ -1,62 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.deltaspike.data.test.ee7.util;
-
-import java.io.File;
-
-import org.jboss.shrinkwrap.api.ShrinkWrap;
-import org.jboss.shrinkwrap.api.asset.EmptyAsset;
-import org.jboss.shrinkwrap.api.spec.WebArchive;
-import org.jboss.shrinkwrap.resolver.api.maven.Maven;
-
-public abstract class TestDeployments {
-
-    /**
-     * Create a basic deployment with dependencies, beans.xml and persistence descriptor.
-     *
-     * @return Basic web archive.
-     */
-    public static WebArchive initDeployment()
-    {
-        Logging.reconfigure();
-
-        WebArchive archive = ShrinkWrap
-                .create(WebArchive.class, "test.war")
-                .addAsLibraries(getDeltaSpikeDataWithDependencies())
-                .addAsWebInfResource("test-persistence.xml", "classes/META-INF/persistence.xml")
-                .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml");
-
-        return archive;
-    }
-
-    public static File[] getDeltaSpikeDataWithDependencies()
-    {
-        return Maven.resolver().loadPomFromFile("pom.xml").resolve(
-                "org.apache.deltaspike.core:deltaspike-core-api",
-                "org.apache.deltaspike.core:deltaspike-core-impl",
-                "org.apache.deltaspike.modules:deltaspike-partial-bean-module-api",
-                "org.apache.deltaspike.modules:deltaspike-partial-bean-module-impl",
-                "org.apache.deltaspike.modules:deltaspike-jpa-module-api",
-                "org.apache.deltaspike.modules:deltaspike-jpa-module-impl",
-                "org.apache.deltaspike.modules:deltaspike-data-module-api",
-                "org.apache.deltaspike.modules:deltaspike-data-module-impl")
-                .withTransitivity()
-                .asFile();
-    }
-}
diff --git a/deltaspike/modules/data/test-ee7/src/test/resources-glassfish/test-persistence.xml b/deltaspike/modules/data/test-ee7/src/test/resources-glassfish/test-persistence.xml
deleted file mode 100644
index fc90eb509..000000000
--- a/deltaspike/modules/data/test-ee7/src/test/resources-glassfish/test-persistence.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements. See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership. The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License. You may obtain a copy of the License at
-  ~
-  ~ http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied. See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-<persistence version="2.0" 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 http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
-    <persistence-unit name="test"> 
-        <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
-        <jta-data-source>jdbc/__default</jta-data-source>
-        <properties>
-            <property name="eclipselink.ddl-generation" value="drop-and-create-tables"/>
-            <property name="eclipselink.logging.level" value="FINE"/>
-            <property name="eclipselink.logging.parameters" value="true" />
-        </properties>
-    </persistence-unit>
-</persistence>
diff --git a/deltaspike/modules/data/test-ee7/src/test/resources-weblogic/test-persistence.xml b/deltaspike/modules/data/test-ee7/src/test/resources-weblogic/test-persistence.xml
deleted file mode 100644
index 2200763f3..000000000
--- a/deltaspike/modules/data/test-ee7/src/test/resources-weblogic/test-persistence.xml
+++ /dev/null
@@ -1,31 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements. See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership. The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License. You may obtain a copy of the License at
-  ~
-  ~ http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied. See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-<persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence">
-    <persistence-unit name="test"> 
-        <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
-        <jta-data-source>TestDS</jta-data-source>
-        <properties>
-            <property name="eclipselink.ddl-generation" value="drop-and-create-tables"/>
-            <property name="eclipselink.logging.level" value="FINE"/>
-            <property name="eclipselink.logging.parameters" value="true" />
-            <property name="eclipselink.deploy-on-startup" value="true" />
-        </properties>
-    </persistence-unit>
-</persistence>
diff --git a/deltaspike/modules/data/test-ee7/src/test/resources-wildfly/test-persistence.xml b/deltaspike/modules/data/test-ee7/src/test/resources-wildfly/test-persistence.xml
deleted file mode 100644
index bff9a0211..000000000
--- a/deltaspike/modules/data/test-ee7/src/test/resources-wildfly/test-persistence.xml
+++ /dev/null
@@ -1,27 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements. See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership. The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License. You may obtain a copy of the License at
-  ~
-  ~ http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied. See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-<persistence version="2.0" 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 http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
-    <persistence-unit name="test"> 
-        <jta-data-source>java:jboss/datasources/ExampleDS</jta-data-source>
-        <properties>
-            <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
-        </properties>
-    </persistence-unit>
-</persistence>
diff --git a/deltaspike/modules/data/test-ee7/src/test/resources/logging.properties b/deltaspike/modules/data/test-ee7/src/test/resources/logging.properties
deleted file mode 100755
index bfe0d21b8..000000000
--- a/deltaspike/modules/data/test-ee7/src/test/resources/logging.properties
+++ /dev/null
@@ -1,32 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-handlers=java.util.logging.ConsoleHandler
-.level=SEVERE
-
-java.util.logging.FileHandler.pattern=%h/java%u.log
-java.util.logging.FileHandler.limit=50000
-java.util.logging.FileHandler.count=1
-java.util.logging.FileHandler.formatter=java.util.logging.XMLFormatter
-
-java.util.logging.ConsoleHandler.level=ALL
-java.util.logging.ConsoleHandler.formatter=java.util.logging.SimpleFormatter
-
-#org.glassfish.level=SEVERE
-#com.sun.enterprise.level=INFO
diff --git a/deltaspike/modules/jpa/api/pom.xml b/deltaspike/modules/jpa/api/pom.xml
index e73623590..ca764e6da 100644
--- a/deltaspike/modules/jpa/api/pom.xml
+++ b/deltaspike/modules/jpa/api/pom.xml
@@ -51,6 +51,7 @@
         <dependency>
             <groupId>org.apache.deltaspike.core</groupId>
             <artifactId>deltaspike-core-api</artifactId>
+            <version>${project.version}</version>
         </dependency>
     </dependencies>
 
diff --git a/deltaspike/modules/jpa/api/src/main/java/org/apache/deltaspike/jpa/spi/descriptor/xml/DescriptorReader.java b/deltaspike/modules/jpa/api/src/main/java/org/apache/deltaspike/jpa/spi/descriptor/xml/DescriptorReader.java
index c7b765cb0..68d89ac9b 100644
--- a/deltaspike/modules/jpa/api/src/main/java/org/apache/deltaspike/jpa/spi/descriptor/xml/DescriptorReader.java
+++ b/deltaspike/modules/jpa/api/src/main/java/org/apache/deltaspike/jpa/spi/descriptor/xml/DescriptorReader.java
@@ -28,9 +28,9 @@ import java.util.List;
 import java.util.logging.Level;
 import java.util.logging.Logger;
 
-import jakarta.xml.parsers.DocumentBuilder;
-import jakarta.xml.parsers.DocumentBuilderFactory;
-import jakarta.xml.parsers.ParserConfigurationException;
+import javax.xml.parsers.DocumentBuilder;
+import javax.xml.parsers.DocumentBuilderFactory;
+import javax.xml.parsers.ParserConfigurationException;
 import org.apache.deltaspike.core.util.AggregatedClassLoader;
 
 import org.xml.sax.InputSource;
diff --git a/deltaspike/modules/jpa/api/src/main/java/org/apache/deltaspike/jpa/spi/entitymanager/QualifierBackedEntityManagerResolver.java b/deltaspike/modules/jpa/api/src/main/java/org/apache/deltaspike/jpa/spi/entitymanager/QualifierBackedEntityManagerResolver.java
index 1ba048366..988b015fe 100644
--- a/deltaspike/modules/jpa/api/src/main/java/org/apache/deltaspike/jpa/spi/entitymanager/QualifierBackedEntityManagerResolver.java
+++ b/deltaspike/modules/jpa/api/src/main/java/org/apache/deltaspike/jpa/spi/entitymanager/QualifierBackedEntityManagerResolver.java
@@ -19,7 +19,7 @@
 
 package org.apache.deltaspike.jpa.spi.entitymanager;
 
-import org.apache.deltaspike.core.api.literal.AnyLiteral;
+import jakarta.enterprise.inject.Any;
 import org.apache.deltaspike.jpa.api.entitymanager.EntityManagerResolver;
 
 import jakarta.enterprise.inject.spi.Bean;
@@ -61,10 +61,10 @@ public class QualifierBackedEntityManagerResolver implements EntityManagerResolv
     }
     private Bean<EntityManager> resolveEntityManagerBeans()
     {
-        Set<Bean<?>> entityManagerBeans = beanManager.getBeans(EntityManager.class, new AnyLiteral());
+        Set<Bean<?>> entityManagerBeans = beanManager.getBeans(EntityManager.class, Any.Literal.INSTANCE);
         if (entityManagerBeans == null)
         {
-            entityManagerBeans = new HashSet<Bean<?>>();
+            entityManagerBeans = new HashSet<>();
         }
         for (Class<? extends Annotation> qualifierClass : qualifiers)
         {
diff --git a/deltaspike/modules/jpa/impl/pom.xml b/deltaspike/modules/jpa/impl/pom.xml
index 9c53d4a82..6b595bd19 100644
--- a/deltaspike/modules/jpa/impl/pom.xml
+++ b/deltaspike/modules/jpa/impl/pom.xml
@@ -53,22 +53,25 @@
         <dependency>
             <groupId>org.apache.deltaspike.core</groupId>
             <artifactId>deltaspike-core-api</artifactId>
+            <version>${project.version}</version>
         </dependency>
 
         <dependency>
             <groupId>org.apache.deltaspike.core</groupId>
             <artifactId>deltaspike-core-impl</artifactId>
+            <version>${project.version}</version>
             <scope>compile</scope>
         </dependency>
 
         <dependency>
             <groupId>org.apache.deltaspike.modules</groupId>
             <artifactId>deltaspike-jpa-module-api</artifactId>
+            <version>${project.version}</version>
         </dependency>
 
         <dependency>
-            <groupId>org.apache.geronimo.specs</groupId>
-            <artifactId>geronimo-jta_1.1_spec</artifactId>
+            <groupId>jakarta.transaction</groupId>
+            <artifactId>jakarta.transaction-api</artifactId>
         </dependency>
     </dependencies>
 
diff --git a/deltaspike/modules/jpa/impl/src/test/java/org/apache/deltaspike/test/jpa/api/entitymanager/TestPersistenceProviderResolver.java b/deltaspike/modules/jpa/impl/src/test/java/org/apache/deltaspike/test/jpa/api/entitymanager/TestPersistenceProviderResolver.java
index a2f199cee..fc0c4c407 100644
--- a/deltaspike/modules/jpa/impl/src/test/java/org/apache/deltaspike/test/jpa/api/entitymanager/TestPersistenceProviderResolver.java
+++ b/deltaspike/modules/jpa/impl/src/test/java/org/apache/deltaspike/test/jpa/api/entitymanager/TestPersistenceProviderResolver.java
@@ -20,9 +20,12 @@ package org.apache.deltaspike.test.jpa.api.entitymanager;
 
 import jakarta.enterprise.inject.Typed;
 import jakarta.persistence.Cache;
+import jakarta.persistence.EntityGraph;
 import jakarta.persistence.EntityManager;
 import jakarta.persistence.EntityManagerFactory;
 import jakarta.persistence.PersistenceUnitUtil;
+import jakarta.persistence.Query;
+import jakarta.persistence.SynchronizationType;
 import jakarta.persistence.criteria.CriteriaBuilder;
 import jakarta.persistence.metamodel.Metamodel;
 import jakarta.persistence.spi.PersistenceProvider;
@@ -81,6 +84,18 @@ public class TestPersistenceProviderResolver implements PersistenceProviderResol
         {
             return null;  
         }
+
+        @Override
+        public void generateSchema(PersistenceUnitInfo arg0, Map arg1)
+        {
+            
+        }
+
+        @Override
+        public boolean generateSchema(String arg0, Map arg1)
+        {
+            return true;
+        }
     }
 
     @Typed()
@@ -155,5 +170,35 @@ public class TestPersistenceProviderResolver implements PersistenceProviderResol
         {
             return null;  
         }
+
+        @Override
+        public EntityManager createEntityManager(SynchronizationType arg0)
+        {
+            return null;
+        }
+
+        @Override
+        public EntityManager createEntityManager(SynchronizationType arg0, Map arg1)
+        {
+            return null;
+        }
+
+        @Override
+        public void addNamedQuery(String arg0, Query arg1)
+        {
+            
+        }
+
+        @Override
+        public <T> T unwrap(Class<T> arg0)
+        {
+            return null;
+        }
+
+        @Override
+        public <T> void addNamedEntityGraph(String arg0, EntityGraph<T> arg1)
+        {
+            
+        }
     }
 }
diff --git a/deltaspike/modules/jpa/impl/src/test/java/org/apache/deltaspike/test/jpa/api/shared/TestEntityManager.java b/deltaspike/modules/jpa/impl/src/test/java/org/apache/deltaspike/test/jpa/api/shared/TestEntityManager.java
index cd8618a76..641f88944 100644
--- a/deltaspike/modules/jpa/impl/src/test/java/org/apache/deltaspike/test/jpa/api/shared/TestEntityManager.java
+++ b/deltaspike/modules/jpa/impl/src/test/java/org/apache/deltaspike/test/jpa/api/shared/TestEntityManager.java
@@ -19,16 +19,21 @@
 package org.apache.deltaspike.test.jpa.api.shared;
 
 import jakarta.enterprise.inject.Typed;
+import jakarta.persistence.EntityGraph;
 import jakarta.persistence.EntityManager;
 import jakarta.persistence.EntityManagerFactory;
 import jakarta.persistence.EntityTransaction;
 import jakarta.persistence.FlushModeType;
 import jakarta.persistence.LockModeType;
 import jakarta.persistence.Query;
+import jakarta.persistence.StoredProcedureQuery;
 import jakarta.persistence.TypedQuery;
 import jakarta.persistence.criteria.CriteriaBuilder;
+import jakarta.persistence.criteria.CriteriaDelete;
 import jakarta.persistence.criteria.CriteriaQuery;
+import jakarta.persistence.criteria.CriteriaUpdate;
 import jakarta.persistence.metamodel.Metamodel;
+import java.util.List;
 import java.util.Map;
 
 @Typed()
@@ -306,4 +311,70 @@ public class TestEntityManager implements EntityManager
     public void setFlushed(boolean flushed) {
         this.flushed = flushed;
     }
+
+    @Override
+    public Query createQuery(CriteriaUpdate arg0)
+    {
+        throw new IllegalStateException("not implemented");
+    }
+
+    @Override
+    public Query createQuery(CriteriaDelete arg0)
+    {
+        throw new IllegalStateException("not implemented");
+    }
+
+    @Override
+    public StoredProcedureQuery createNamedStoredProcedureQuery(String arg0)
+    {
+        throw new IllegalStateException("not implemented");
+    }
+
+    @Override
+    public StoredProcedureQuery createStoredProcedureQuery(String arg0)
+    {
+        throw new IllegalStateException("not implemented");
+    }
+
+    @Override
+    public StoredProcedureQuery createStoredProcedureQuery(String arg0, Class... arg1)
+    {
+        throw new IllegalStateException("not implemented");
+    }
+
+    @Override
+    public StoredProcedureQuery createStoredProcedureQuery(String arg0, String... arg1)
+    {
+        throw new IllegalStateException("not implemented");
+    }
+
+    @Override
+    public boolean isJoinedToTransaction()
+    {
+        throw new IllegalStateException("not implemented");
+    }
+
+    @Override
+    public <T> EntityGraph<T> createEntityGraph(Class<T> arg0)
+    {
+        throw new IllegalStateException("not implemented");
+    }
+
+    @Override
+    public EntityGraph<?> createEntityGraph(String arg0)
+    {
+        throw new IllegalStateException("not implemented");
+    }
+
+    @Override
+    public EntityGraph<?> getEntityGraph(String arg0)
+    {
+        throw new IllegalStateException("not implemented");
+    }
+
+    @Override
+    public <T> List<EntityGraph<? super T>> getEntityGraphs(Class<T> arg0)
+    {
+        throw new IllegalStateException("not implemented");
+    }
 }
diff --git a/deltaspike/modules/jpa/pom.xml b/deltaspike/modules/jpa/pom.xml
index 7f77c8691..b74664fc7 100644
--- a/deltaspike/modules/jpa/pom.xml
+++ b/deltaspike/modules/jpa/pom.xml
@@ -41,8 +41,8 @@
     <dependencies>
         <!-- JPA API -->
         <dependency>
-            <groupId>org.apache.geronimo.specs</groupId>
-            <artifactId>geronimo-jpa_2.2_spec</artifactId>
+            <groupId>jakarta.persistence</groupId>
+            <artifactId>jakarta.persistence-api</artifactId>
         </dependency>
     </dependencies>
 </project>
diff --git a/deltaspike/modules/pom.xml b/deltaspike/modules/pom.xml
index 05f639ebe..e417581c6 100644
--- a/deltaspike/modules/pom.xml
+++ b/deltaspike/modules/pom.xml
@@ -36,14 +36,16 @@
 
     <modules>
         <module>proxy</module>
+        
 <!--
         <module>security</module>
-        <module>jpa</module>
         <module>jsf</module>
         -->
         <module>partial-bean</module>
-<!--
+        <module>jpa</module>
         <module>data</module>
+<!--
+        
         <module>scheduler</module>
 -->
         <module>test-control</module>
diff --git a/deltaspike/parent/pom.xml b/deltaspike/parent/pom.xml
index e52a91b73..d23f38c7d 100644
--- a/deltaspike/parent/pom.xml
+++ b/deltaspike/parent/pom.xml
@@ -128,6 +128,7 @@
         <jakarta.interceptor-api.version>2.0.0</jakarta.interceptor-api.version>
         <jakarta.annotation-api.version>2.0.0</jakarta.annotation-api.version>
         <jakarta.el-api.version>4.0.0</jakarta.el-api.version>
+        <jakarta.persistence-api.version>3.1.0</jakarta.persistence-api.version>
         <jakarta.transaction-api.version>2.0.0</jakarta.transaction-api.version>
     </properties>
 
@@ -435,6 +436,14 @@
                 <scope>provided</scope>
             </dependency>
 
+            <dependency>
+                <groupId>jakarta.persistence</groupId>
+                <artifactId>jakarta.persistence-api</artifactId>
+                <version>${jakarta.persistence-api.version}</version>
+                <scope>provided</scope>
+            </dependency>
+
+
             <dependency>
                 <groupId>org.apache.tomcat</groupId>
                 <artifactId>tomcat-servlet-api</artifactId>