diff --git a/openjpa-all/pom.xml b/openjpa-all/pom.xml
index 845a334a3..1e384aa09 100644
--- a/openjpa-all/pom.xml
+++ b/openjpa-all/pom.xml
@@ -28,7 +28,7 @@
* Because the interface is delegated, it is not necessary to have the same method name or
* even signature. It may not have to declare all the original service interface methods either.
diff --git a/openjpa-examples/opentrader/src/main/java/org/apache/openjpa/trader/domain/Ask.java b/openjpa-examples/opentrader/src/main/java/org/apache/openjpa/trader/domain/Ask.java
index eab8c6264..af2b3af60 100644
--- a/openjpa-examples/opentrader/src/main/java/org/apache/openjpa/trader/domain/Ask.java
+++ b/openjpa-examples/opentrader/src/main/java/org/apache/openjpa/trader/domain/Ask.java
@@ -18,9 +18,9 @@
*/
package org.apache.openjpa.trader.domain;
-import javax.persistence.CascadeType;
-import javax.persistence.Entity;
-import javax.persistence.ManyToOne;
+import jakarta.persistence.CascadeType;
+import jakarta.persistence.Entity;
+import jakarta.persistence.ManyToOne;
/**
* An offer to sell a financial instrument.
diff --git a/openjpa-examples/opentrader/src/main/java/org/apache/openjpa/trader/domain/Bid.java b/openjpa-examples/opentrader/src/main/java/org/apache/openjpa/trader/domain/Bid.java
index 752b85039..cc816c6fb 100644
--- a/openjpa-examples/opentrader/src/main/java/org/apache/openjpa/trader/domain/Bid.java
+++ b/openjpa-examples/opentrader/src/main/java/org/apache/openjpa/trader/domain/Bid.java
@@ -18,9 +18,9 @@
*/
package org.apache.openjpa.trader.domain;
-import javax.persistence.CascadeType;
-import javax.persistence.Entity;
-import javax.persistence.ManyToOne;
+import jakarta.persistence.CascadeType;
+import jakarta.persistence.Entity;
+import jakarta.persistence.ManyToOne;
/**
* An offer to buy a financial instrument.
* The only mutable state of an offer is its expiration.
diff --git a/openjpa-examples/opentrader/src/main/java/org/apache/openjpa/trader/domain/Stock.java b/openjpa-examples/opentrader/src/main/java/org/apache/openjpa/trader/domain/Stock.java
index efe67d83d..157ad7475 100644
--- a/openjpa-examples/opentrader/src/main/java/org/apache/openjpa/trader/domain/Stock.java
+++ b/openjpa-examples/opentrader/src/main/java/org/apache/openjpa/trader/domain/Stock.java
@@ -20,9 +20,9 @@ package org.apache.openjpa.trader.domain;
import java.io.Serializable;
-import javax.persistence.Column;
-import javax.persistence.Entity;
-import javax.persistence.Id;
+import jakarta.persistence.Column;
+import jakarta.persistence.Entity;
+import jakarta.persistence.Id;
/**
* A stock is a typical financial instrument that is bought and sold by {@linkplain Trader}.
diff --git a/openjpa-examples/opentrader/src/main/java/org/apache/openjpa/trader/domain/Tradable.java b/openjpa-examples/opentrader/src/main/java/org/apache/openjpa/trader/domain/Tradable.java
index b9c10692a..8dc53ac96 100644
--- a/openjpa-examples/opentrader/src/main/java/org/apache/openjpa/trader/domain/Tradable.java
+++ b/openjpa-examples/opentrader/src/main/java/org/apache/openjpa/trader/domain/Tradable.java
@@ -20,15 +20,15 @@ package org.apache.openjpa.trader.domain;
import java.io.Serializable;
-import javax.persistence.CascadeType;
-import javax.persistence.Column;
-import javax.persistence.FetchType;
-import javax.persistence.GeneratedValue;
-import javax.persistence.Id;
-import javax.persistence.ManyToOne;
-import javax.persistence.MappedSuperclass;
-import javax.persistence.OneToOne;
-import javax.persistence.Version;
+import jakarta.persistence.CascadeType;
+import jakarta.persistence.Column;
+import jakarta.persistence.FetchType;
+import jakarta.persistence.GeneratedValue;
+import jakarta.persistence.Id;
+import jakarta.persistence.ManyToOne;
+import jakarta.persistence.MappedSuperclass;
+import jakarta.persistence.OneToOne;
+import jakarta.persistence.Version;
/**
* An abstract root for domain objects in OpenTrader designates a {@link Stock financial instrument}
diff --git a/openjpa-examples/opentrader/src/main/java/org/apache/openjpa/trader/domain/Trade.java b/openjpa-examples/opentrader/src/main/java/org/apache/openjpa/trader/domain/Trade.java
index 0a2e10a8e..9b83a4e27 100644
--- a/openjpa-examples/opentrader/src/main/java/org/apache/openjpa/trader/domain/Trade.java
+++ b/openjpa-examples/opentrader/src/main/java/org/apache/openjpa/trader/domain/Trade.java
@@ -20,12 +20,12 @@ package org.apache.openjpa.trader.domain;
import java.io.Serializable;
-import javax.persistence.CascadeType;
-import javax.persistence.Column;
-import javax.persistence.Entity;
-import javax.persistence.GeneratedValue;
-import javax.persistence.Id;
-import javax.persistence.OneToOne;
+import jakarta.persistence.CascadeType;
+import jakarta.persistence.Column;
+import jakarta.persistence.Entity;
+import jakarta.persistence.GeneratedValue;
+import jakarta.persistence.Id;
+import jakarta.persistence.OneToOne;
@Entity
public class Trade implements Serializable {
diff --git a/openjpa-examples/opentrader/src/main/java/org/apache/openjpa/trader/domain/Trader.java b/openjpa-examples/opentrader/src/main/java/org/apache/openjpa/trader/domain/Trader.java
index a2aad6b0c..4d12cf0ad 100644
--- a/openjpa-examples/opentrader/src/main/java/org/apache/openjpa/trader/domain/Trader.java
+++ b/openjpa-examples/opentrader/src/main/java/org/apache/openjpa/trader/domain/Trader.java
@@ -20,11 +20,11 @@ package org.apache.openjpa.trader.domain;
import java.io.Serializable;
-import javax.persistence.Entity;
-import javax.persistence.Id;
-import javax.persistence.Table;
-import javax.persistence.UniqueConstraint;
-import javax.persistence.Version;
+import jakarta.persistence.Entity;
+import jakarta.persistence.Id;
+import jakarta.persistence.Table;
+import jakarta.persistence.UniqueConstraint;
+import jakarta.persistence.Version;
@Entity
@Table(name="TRADER",
diff --git a/openjpa-examples/opentrader/src/main/java/org/apache/openjpa/trader/service/Exchange.java b/openjpa-examples/opentrader/src/main/java/org/apache/openjpa/trader/service/Exchange.java
index 5ea3cde59..c496c8499 100644
--- a/openjpa-examples/opentrader/src/main/java/org/apache/openjpa/trader/service/Exchange.java
+++ b/openjpa-examples/opentrader/src/main/java/org/apache/openjpa/trader/service/Exchange.java
@@ -25,9 +25,9 @@ import java.util.HashMap;
import java.util.List;
import java.util.Map;
-import javax.persistence.EntityManager;
-import javax.persistence.PersistenceContextType;
-import javax.persistence.TypedQuery;
+import jakarta.persistence.EntityManager;
+import jakarta.persistence.PersistenceContextType;
+import jakarta.persistence.TypedQuery;
import org.apache.openjpa.lib.log.LogFactory;
import org.apache.openjpa.trader.domain.Ask;
diff --git a/openjpa-examples/opentrader/src/main/java/org/apache/openjpa/trader/service/MarketFeed.java b/openjpa-examples/opentrader/src/main/java/org/apache/openjpa/trader/service/MarketFeed.java
index 1f375b0eb..3d0bdc878 100644
--- a/openjpa-examples/opentrader/src/main/java/org/apache/openjpa/trader/service/MarketFeed.java
+++ b/openjpa-examples/opentrader/src/main/java/org/apache/openjpa/trader/service/MarketFeed.java
@@ -23,7 +23,7 @@ import java.util.Random;
import java.util.Timer;
import java.util.TimerTask;
-import javax.persistence.EntityManager;
+import jakarta.persistence.EntityManager;
import org.apache.openjpa.trader.domain.Stock;
diff --git a/openjpa-examples/opentrader/src/main/java/org/apache/openjpa/trader/service/PersistenceService.java b/openjpa-examples/opentrader/src/main/java/org/apache/openjpa/trader/service/PersistenceService.java
index 5f44e3447..7a2f0fa60 100644
--- a/openjpa-examples/opentrader/src/main/java/org/apache/openjpa/trader/service/PersistenceService.java
+++ b/openjpa-examples/opentrader/src/main/java/org/apache/openjpa/trader/service/PersistenceService.java
@@ -23,10 +23,10 @@ import java.util.Map;
import java.util.Observable;
import java.util.concurrent.locks.ReentrantLock;
-import javax.persistence.EntityManager;
-import javax.persistence.EntityManagerFactory;
-import javax.persistence.Persistence;
-import javax.persistence.PersistenceContextType;
+import jakarta.persistence.EntityManager;
+import jakarta.persistence.EntityManagerFactory;
+import jakarta.persistence.Persistence;
+import jakarta.persistence.PersistenceContextType;
import org.apache.openjpa.persistence.OpenJPAEntityManagerFactory;
import org.apache.openjpa.persistence.OpenJPAPersistence;
diff --git a/openjpa-examples/pom.xml b/openjpa-examples/pom.xml
index 88c9a6c17..4ff524dda 100644
--- a/openjpa-examples/pom.xml
+++ b/openjpa-examples/pom.xml
@@ -28,7 +28,7 @@
Persistent type used in testing the mappingtool's buildSchema action
diff --git a/openjpa-examples/simple/src/main/java/mapping/BuildUTF8SchemaPC.java b/openjpa-examples/simple/src/main/java/mapping/BuildUTF8SchemaPC.java
index 42e3dddc0..97dc93f2b 100644
--- a/openjpa-examples/simple/src/main/java/mapping/BuildUTF8SchemaPC.java
+++ b/openjpa-examples/simple/src/main/java/mapping/BuildUTF8SchemaPC.java
@@ -18,12 +18,12 @@
*/
package mapping;
-import javax.persistence.Basic;
-import javax.persistence.Column;
-import javax.persistence.Entity;
-import javax.persistence.GeneratedValue;
-import javax.persistence.GenerationType;
-import javax.persistence.Id;
+import jakarta.persistence.Basic;
+import jakarta.persistence.Column;
+import jakarta.persistence.Entity;
+import jakarta.persistence.GeneratedValue;
+import jakarta.persistence.GenerationType;
+import jakarta.persistence.Id;
/**
* Persistent type used in testing the mappingtool's buildSchema action
diff --git a/openjpa-examples/simple/src/main/java/relations/Deity.java b/openjpa-examples/simple/src/main/java/relations/Deity.java
index 721243d09..f43fe3487 100644
--- a/openjpa-examples/simple/src/main/java/relations/Deity.java
+++ b/openjpa-examples/simple/src/main/java/relations/Deity.java
@@ -22,16 +22,16 @@ import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
-import javax.persistence.Basic;
-import javax.persistence.CascadeType;
-import javax.persistence.Entity;
-import javax.persistence.EnumType;
-import javax.persistence.Enumerated;
-import javax.persistence.Id;
-import javax.persistence.NamedQueries;
-import javax.persistence.NamedQuery;
-import javax.persistence.OneToMany;
-import javax.persistence.OneToOne;
+import jakarta.persistence.Basic;
+import jakarta.persistence.CascadeType;
+import jakarta.persistence.Entity;
+import jakarta.persistence.EnumType;
+import jakarta.persistence.Enumerated;
+import jakarta.persistence.Id;
+import jakarta.persistence.NamedQueries;
+import jakarta.persistence.NamedQuery;
+import jakarta.persistence.OneToMany;
+import jakarta.persistence.OneToOne;
/**
diff --git a/openjpa-examples/simple/src/main/java/relations/Main.java b/openjpa-examples/simple/src/main/java/relations/Main.java
index fec2df094..a228785f3 100644
--- a/openjpa-examples/simple/src/main/java/relations/Main.java
+++ b/openjpa-examples/simple/src/main/java/relations/Main.java
@@ -24,10 +24,10 @@ import static relations.Deity.Gender.MALE;
import java.util.List;
-import javax.persistence.EntityManager;
-import javax.persistence.EntityManagerFactory;
-import javax.persistence.Persistence;
-import javax.persistence.Query;
+import jakarta.persistence.EntityManager;
+import jakarta.persistence.EntityManagerFactory;
+import jakarta.persistence.Persistence;
+import jakarta.persistence.Query;
/**
diff --git a/openjpa-examples/simple/src/main/java/reversemapping/Main.java b/openjpa-examples/simple/src/main/java/reversemapping/Main.java
index c6f5d98bf..23609a7eb 100644
--- a/openjpa-examples/simple/src/main/java/reversemapping/Main.java
+++ b/openjpa-examples/simple/src/main/java/reversemapping/Main.java
@@ -20,7 +20,7 @@ package reversemapping;
import java.text.*;
import java.util.*;
-import javax.persistence.*;
+import jakarta.persistence.*;
/**
diff --git a/openjpa-features/pom.xml b/openjpa-features/pom.xml
index 2fff3f440..d11b45575 100644
--- a/openjpa-features/pom.xml
+++ b/openjpa-features/pom.xml
@@ -18,7 +18,7 @@
Implementation of the {@link ManagedRuntime} interface that listens
- * for an OSGi service with interface The support for a transaction manager is usually activated inside an OSGi
@@ -87,7 +87,7 @@ public class OSGiManagedRuntime extends AbstractManagedRuntime {
/**
* Register a service listener to the given bundle context by
* {@link BundleContext#addServiceListener(ServiceListener,String)} with a filter
- * expression of
persistence.xml
located in
resources/META-INF
directory.
- Modify the javax.persistence.jdbc.driver
- and javax.persistence.jdbc.url
property to suit your local database and its driver.
+ Modify the jakarta.persistence.jdbc.driver
+ and jakarta.persistencejdbc.url
property to suit your local database and its driver.
The example persistence.xml
provided is primarily for a JSE environment.
In JEE environment, you may already have a JTA data source configured and registered in JNDI.
diff --git a/openjpa-examples/openbooks/pom.xml b/openjpa-examples/openbooks/pom.xml
index bbd1a501e..770cf061d 100644
--- a/openjpa-examples/openbooks/pom.xml
+++ b/openjpa-examples/openbooks/pom.xml
@@ -29,7 +29,7 @@
javax.persistence.PersistenceException
. To propagate
+ * JPA and hence will throw jakarta.persistence.PersistenceException
. To propagate
* these exceptions to the client, these exceptions need to be translated for serialization by
* GWT compiler and will bring in heavier dependency.
*
@@ -51,7 +51,7 @@ import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
* com.google.gwt.user.client.rpc.RemoteService
. But the discipline used for this
* application dictates that the service interface be independent of either
* how it is implemented or how it will be accessed. That is why original {@link TradingService}
- * definition neither depends on javax.persistence.*
nor on com.google.gwt.*
.
+ * definition neither depends on jakarta.persistence.*
nor on com.google.gwt.*
.
* javax.persistence.sharedCache.mode
determined the type of the instance being cachable.
+ * such as jakarta.persistence.sharedCache.mode
determined the type of the instance being cachable.
*
- * For example, a specific policy will never be active for when javax.persistence.sharedCache.mode
+ * For example, a specific policy will never be active for when jakarta.persistence.sharedCache.mode
* is set to NONE
.
*
* Distribution Policies are configurable. So a specific policy can be configured as
diff --git a/openjpa-kernel/src/main/java/org/apache/openjpa/ee/AbstractManagedRuntime.java b/openjpa-kernel/src/main/java/org/apache/openjpa/ee/AbstractManagedRuntime.java
index 0c3fbf18c..e9e377fba 100644
--- a/openjpa-kernel/src/main/java/org/apache/openjpa/ee/AbstractManagedRuntime.java
+++ b/openjpa-kernel/src/main/java/org/apache/openjpa/ee/AbstractManagedRuntime.java
@@ -17,10 +17,10 @@
package org.apache.openjpa.ee;
-import javax.transaction.NotSupportedException;
-import javax.transaction.SystemException;
-import javax.transaction.Transaction;
-import javax.transaction.TransactionManager;
+import jakarta.transaction.NotSupportedException;
+import jakarta.transaction.SystemException;
+import jakarta.transaction.Transaction;
+import jakarta.transaction.TransactionManager;
import org.apache.openjpa.lib.util.Localizer;
import org.apache.openjpa.util.GeneralException;
diff --git a/openjpa-kernel/src/main/java/org/apache/openjpa/ee/AutomaticManagedRuntime.java b/openjpa-kernel/src/main/java/org/apache/openjpa/ee/AutomaticManagedRuntime.java
index bd42c39f3..6c7d6393b 100644
--- a/openjpa-kernel/src/main/java/org/apache/openjpa/ee/AutomaticManagedRuntime.java
+++ b/openjpa-kernel/src/main/java/org/apache/openjpa/ee/AutomaticManagedRuntime.java
@@ -21,9 +21,9 @@ package org.apache.openjpa.ee;
import java.util.LinkedList;
import java.util.List;
-import javax.transaction.NotSupportedException;
-import javax.transaction.SystemException;
-import javax.transaction.TransactionManager;
+import jakarta.transaction.NotSupportedException;
+import jakarta.transaction.SystemException;
+import jakarta.transaction.TransactionManager;
import org.apache.openjpa.lib.conf.Configurable;
import org.apache.openjpa.lib.conf.Configuration;
@@ -56,14 +56,14 @@ public class AutomaticManagedRuntime extends AbstractManagedRuntime
implements ManagedRuntime, Configurable {
private static final String [] JNDI_LOCS = new String []{
- "javax.transaction.TransactionManager", // weblogic
+ "jakarta.transaction.TransactionManager", // weblogic
"java:/TransactionManager", // jboss, jrun, Geronimo
"java:/DefaultDomain/TransactionManager", // jrun too
"java:comp/pm/TransactionManager", // orion & oracle
"java:comp/TransactionManager", // generic
"java:appserver/TransactionManager", // GlassFish
"java:pm/TransactionManager", // borland
- "aries:services/javax.transaction.TransactionManager", // Apache Aries
+ "aries:services/jakarta.transaction.TransactionManager", // Apache Aries
};
private static final String [] METHODS = new String[]{
"com.arjuna.jta.JTA_TransactionManager.transactionManager", // hp
diff --git a/openjpa-kernel/src/main/java/org/apache/openjpa/ee/InvocationManagedRuntime.java b/openjpa-kernel/src/main/java/org/apache/openjpa/ee/InvocationManagedRuntime.java
index 0cd3e9e5d..cb74d942b 100644
--- a/openjpa-kernel/src/main/java/org/apache/openjpa/ee/InvocationManagedRuntime.java
+++ b/openjpa-kernel/src/main/java/org/apache/openjpa/ee/InvocationManagedRuntime.java
@@ -20,7 +20,7 @@ package org.apache.openjpa.ee;
import java.lang.reflect.Method;
-import javax.transaction.TransactionManager;
+import jakarta.transaction.TransactionManager;
import org.apache.openjpa.conf.OpenJPAConfiguration;
import org.apache.openjpa.lib.conf.Configurable;
diff --git a/openjpa-kernel/src/main/java/org/apache/openjpa/ee/JNDIManagedRuntime.java b/openjpa-kernel/src/main/java/org/apache/openjpa/ee/JNDIManagedRuntime.java
index a63a7d474..c28c8fb15 100644
--- a/openjpa-kernel/src/main/java/org/apache/openjpa/ee/JNDIManagedRuntime.java
+++ b/openjpa-kernel/src/main/java/org/apache/openjpa/ee/JNDIManagedRuntime.java
@@ -20,7 +20,7 @@ package org.apache.openjpa.ee;
import javax.naming.Context;
import javax.naming.InitialContext;
-import javax.transaction.TransactionManager;
+import jakarta.transaction.TransactionManager;
/**
* Implementation of the {@link ManagedRuntime} interface that uses JNDI to
diff --git a/openjpa-kernel/src/main/java/org/apache/openjpa/ee/ManagedRuntime.java b/openjpa-kernel/src/main/java/org/apache/openjpa/ee/ManagedRuntime.java
index 3beeb75c0..9e938f630 100644
--- a/openjpa-kernel/src/main/java/org/apache/openjpa/ee/ManagedRuntime.java
+++ b/openjpa-kernel/src/main/java/org/apache/openjpa/ee/ManagedRuntime.java
@@ -18,9 +18,9 @@
*/
package org.apache.openjpa.ee;
-import javax.transaction.NotSupportedException;
-import javax.transaction.SystemException;
-import javax.transaction.TransactionManager;
+import jakarta.transaction.NotSupportedException;
+import jakarta.transaction.SystemException;
+import jakarta.transaction.TransactionManager;
/**
* This interface must be implemented by concrete plugins to application
diff --git a/openjpa-kernel/src/main/java/org/apache/openjpa/ee/OSGiManagedRuntime.java b/openjpa-kernel/src/main/java/org/apache/openjpa/ee/OSGiManagedRuntime.java
index cc2dff1dc..bff2e9714 100644
--- a/openjpa-kernel/src/main/java/org/apache/openjpa/ee/OSGiManagedRuntime.java
+++ b/openjpa-kernel/src/main/java/org/apache/openjpa/ee/OSGiManagedRuntime.java
@@ -18,7 +18,7 @@
*/
package org.apache.openjpa.ee;
-import javax.transaction.TransactionManager;
+import jakarta.transaction.TransactionManager;
import org.apache.openjpa.util.InternalException;
import org.osgi.framework.BundleActivator;
@@ -31,7 +31,7 @@ import org.osgi.framework.ServiceReference;
/**
* javax.transaction.TransactionManager
+ * for an OSGi service with interface jakarta.transaction.TransactionManager
* to create a {@link TransactionManager} for controlling transactions.(objectClass=javax.transaction.TransactionManager)
.(objectClass=jakarta.transaction.TransactionManager)
.
The caller is responsible for calling * {@link #deregisterServiceListener(BundleContext)}, when @@ -106,9 +106,9 @@ public class OSGiManagedRuntime extends AbstractManagedRuntime { listener = new Listener(bundleContext); bundleContext.addServiceListener(listener, "(" + Constants.OBJECTCLASS - + "=javax.transaction.TransactionManager)"); + + "=jakarta.transaction.TransactionManager)"); - serviceReference = bundleContext.getServiceReference("javax.transaction.TransactionManager"); + serviceReference = bundleContext.getServiceReference("jakarta.transaction.TransactionManager"); if (serviceReference != null) { transactionManager = (TransactionManager)bundleContext.getService(serviceReference); @@ -147,7 +147,7 @@ public class OSGiManagedRuntime extends AbstractManagedRuntime { synchronized (OSGiManagedRuntime.class) { if (transactionManager == null) { - throw new InternalException("No javax.transaction.TransactionManager " + + throw new InternalException("No jakarta.transaction.TransactionManager " + "service is currently registered as an OSGi service."); } diff --git a/openjpa-kernel/src/main/java/org/apache/openjpa/ee/RegistryManagedRuntime.java b/openjpa-kernel/src/main/java/org/apache/openjpa/ee/RegistryManagedRuntime.java index dd3b92752..f24da63a5 100644 --- a/openjpa-kernel/src/main/java/org/apache/openjpa/ee/RegistryManagedRuntime.java +++ b/openjpa-kernel/src/main/java/org/apache/openjpa/ee/RegistryManagedRuntime.java @@ -20,16 +20,16 @@ package org.apache.openjpa.ee; import javax.naming.Context; import javax.naming.InitialContext; -import javax.transaction.HeuristicMixedException; -import javax.transaction.HeuristicRollbackException; -import javax.transaction.InvalidTransactionException; -import javax.transaction.NotSupportedException; -import javax.transaction.RollbackException; -import javax.transaction.Synchronization; -import javax.transaction.SystemException; -import javax.transaction.Transaction; -import javax.transaction.TransactionManager; -import javax.transaction.TransactionSynchronizationRegistry; +import jakarta.transaction.HeuristicMixedException; +import jakarta.transaction.HeuristicRollbackException; +import jakarta.transaction.InvalidTransactionException; +import jakarta.transaction.NotSupportedException; +import jakarta.transaction.RollbackException; +import jakarta.transaction.Synchronization; +import jakarta.transaction.SystemException; +import jakarta.transaction.Transaction; +import jakarta.transaction.TransactionManager; +import jakarta.transaction.TransactionSynchronizationRegistry; import javax.transaction.xa.XAResource; import org.apache.openjpa.lib.util.Localizer; diff --git a/openjpa-kernel/src/main/java/org/apache/openjpa/ee/SunOneManagedRuntime.java b/openjpa-kernel/src/main/java/org/apache/openjpa/ee/SunOneManagedRuntime.java index ff33600d8..577ff4c48 100644 --- a/openjpa-kernel/src/main/java/org/apache/openjpa/ee/SunOneManagedRuntime.java +++ b/openjpa-kernel/src/main/java/org/apache/openjpa/ee/SunOneManagedRuntime.java @@ -20,7 +20,7 @@ package org.apache.openjpa.ee; import java.lang.reflect.Method; -import javax.transaction.TransactionManager; +import jakarta.transaction.TransactionManager; /** * {@link ManagedRuntime} implementation for SunONE. diff --git a/openjpa-kernel/src/main/java/org/apache/openjpa/ee/WASManagedRuntime.java b/openjpa-kernel/src/main/java/org/apache/openjpa/ee/WASManagedRuntime.java index fbe3f60f8..553217374 100644 --- a/openjpa-kernel/src/main/java/org/apache/openjpa/ee/WASManagedRuntime.java +++ b/openjpa-kernel/src/main/java/org/apache/openjpa/ee/WASManagedRuntime.java @@ -24,15 +24,15 @@ import java.lang.reflect.Method; import javax.naming.Context; import javax.naming.InitialContext; -import javax.transaction.HeuristicMixedException; -import javax.transaction.HeuristicRollbackException; -import javax.transaction.InvalidTransactionException; -import javax.transaction.NotSupportedException; -import javax.transaction.RollbackException; -import javax.transaction.Status; -import javax.transaction.Synchronization; -import javax.transaction.SystemException; -import javax.transaction.Transaction; +import jakarta.transaction.HeuristicMixedException; +import jakarta.transaction.HeuristicRollbackException; +import jakarta.transaction.InvalidTransactionException; +import jakarta.transaction.NotSupportedException; +import jakarta.transaction.RollbackException; +import jakarta.transaction.Status; +import jakarta.transaction.Synchronization; +import jakarta.transaction.SystemException; +import jakarta.transaction.Transaction; import javax.transaction.xa.XAResource; import org.apache.openjpa.conf.OpenJPAConfiguration; @@ -79,7 +79,7 @@ public class WASManagedRuntime extends AbstractManagedRuntime * wrapper */ @Override - public javax.transaction.TransactionManager getTransactionManager() + public jakarta.transaction.TransactionManager getTransactionManager() throws Exception { return new WASTransaction(); } @@ -97,8 +97,8 @@ public class WASManagedRuntime extends AbstractManagedRuntime *
@@ -296,7 +296,7 @@ public class WASManagedRuntime extends AbstractManagedRuntime
/**
* AfterCompletion wrapper. Translates the WAS proprietary call to a
- * javax.transaction.Synchronization call.
+ * jakarta.transaction.Synchronization call.
*/
public void afterCompletion(int localTransactionId,
byte[] globalTransactionId, boolean committed) {
@@ -311,7 +311,7 @@ public class WASManagedRuntime extends AbstractManagedRuntime
/**
* BeforeCompletion wrapper. Translates WAS proprietary call to a
- * javax.transaction.Synchronization call.
+ * jakarta.transaction.Synchronization call.
*/
public void beforeCompletion(int arg0, byte[] arg1) {
if (_sync != null) {
diff --git a/openjpa-kernel/src/main/java/org/apache/openjpa/ee/WLSManagedRuntime.java b/openjpa-kernel/src/main/java/org/apache/openjpa/ee/WLSManagedRuntime.java
index dabb7449f..6ef9e452e 100644
--- a/openjpa-kernel/src/main/java/org/apache/openjpa/ee/WLSManagedRuntime.java
+++ b/openjpa-kernel/src/main/java/org/apache/openjpa/ee/WLSManagedRuntime.java
@@ -20,8 +20,8 @@ package org.apache.openjpa.ee;
import java.lang.reflect.Method;
-import javax.transaction.Transaction;
-import javax.transaction.TransactionManager;
+import jakarta.transaction.Transaction;
+import jakarta.transaction.TransactionManager;
/**
* {@link ManagedRuntime} implementation that directly accesses the
diff --git a/openjpa-kernel/src/main/java/org/apache/openjpa/event/JMSRemoteCommitProvider.java b/openjpa-kernel/src/main/java/org/apache/openjpa/event/JMSRemoteCommitProvider.java
index 99a89e059..3723e1d85 100644
--- a/openjpa-kernel/src/main/java/org/apache/openjpa/event/JMSRemoteCommitProvider.java
+++ b/openjpa-kernel/src/main/java/org/apache/openjpa/event/JMSRemoteCommitProvider.java
@@ -20,18 +20,18 @@ package org.apache.openjpa.event;
import java.util.Properties;
-import javax.jms.ExceptionListener;
-import javax.jms.JMSException;
-import javax.jms.Message;
-import javax.jms.MessageListener;
-import javax.jms.ObjectMessage;
-import javax.jms.Session;
-import javax.jms.Topic;
-import javax.jms.TopicConnection;
-import javax.jms.TopicConnectionFactory;
-import javax.jms.TopicPublisher;
-import javax.jms.TopicSession;
-import javax.jms.TopicSubscriber;
+import jakarta.jms.ExceptionListener;
+import jakarta.jms.JMSException;
+import jakarta.jms.Message;
+import jakarta.jms.MessageListener;
+import jakarta.jms.ObjectMessage;
+import jakarta.jms.Session;
+import jakarta.jms.Topic;
+import jakarta.jms.TopicConnection;
+import jakarta.jms.TopicConnectionFactory;
+import jakarta.jms.TopicPublisher;
+import jakarta.jms.TopicSession;
+import jakarta.jms.TopicSubscriber;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
@@ -197,7 +197,7 @@ public class JMSRemoteCommitProvider
}
/* *
- * Returns a {@link javax.jms.MessageListener} capable of
+ * Returns a {@link jakarta.jms.MessageListener} capable of
* understanding and processing messages created by {@link #createMessage}.
* The listener returned by this method is responsible for
* notifying the provider that a remote event has been received.
diff --git a/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/AbstractBrokerFactory.java b/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/AbstractBrokerFactory.java
index 957da41d5..81296787a 100644
--- a/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/AbstractBrokerFactory.java
+++ b/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/AbstractBrokerFactory.java
@@ -34,10 +34,10 @@ import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.locks.ReentrantLock;
-import javax.transaction.Status;
-import javax.transaction.Synchronization;
-import javax.transaction.Transaction;
-import javax.transaction.TransactionManager;
+import jakarta.transaction.Status;
+import jakarta.transaction.Synchronization;
+import jakarta.transaction.Transaction;
+import jakarta.transaction.TransactionManager;
import org.apache.openjpa.lib.util.collections.AbstractReferenceMap.ReferenceStrength;
import org.apache.openjpa.audit.Auditor;
diff --git a/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/Broker.java b/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/Broker.java
index 0426e9b8b..d1437dc66 100644
--- a/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/Broker.java
+++ b/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/Broker.java
@@ -22,7 +22,7 @@ import java.util.Collection;
import java.util.Map;
import java.util.Set;
-import javax.transaction.Synchronization;
+import jakarta.transaction.Synchronization;
import org.apache.openjpa.ee.ManagedRuntime;
import org.apache.openjpa.event.CallbackModes;
diff --git a/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/BrokerImpl.java b/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/BrokerImpl.java
index 8d3cb5c6f..db9a6a8a3 100644
--- a/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/BrokerImpl.java
+++ b/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/BrokerImpl.java
@@ -41,8 +41,8 @@ import java.util.Map;
import java.util.Set;
import java.util.concurrent.locks.ReentrantLock;
-import javax.transaction.Status;
-import javax.transaction.Synchronization;
+import jakarta.transaction.Status;
+import jakarta.transaction.Synchronization;
import org.apache.openjpa.conf.Compatibility;
import org.apache.openjpa.conf.OpenJPAConfiguration;
@@ -1593,7 +1593,7 @@ public class BrokerImpl implements Broker, FindCallbacks, Cloneable, Serializabl
try {
assertTransactionOperation();
- javax.transaction.Transaction trans =
+ jakarta.transaction.Transaction trans =
_runtime.getTransactionManager().getTransaction();
if (trans == null)
throw new InvalidStateException(_loc.get("null-trans"));
@@ -1620,7 +1620,7 @@ public class BrokerImpl implements Broker, FindCallbacks, Cloneable, Serializabl
try {
assertTransactionOperation();
- javax.transaction.Transaction trans =
+ jakarta.transaction.Transaction trans =
_runtime.getTransactionManager().getTransaction();
if (trans != null)
trans.rollback();
@@ -1686,7 +1686,7 @@ public class BrokerImpl implements Broker, FindCallbacks, Cloneable, Serializabl
if ((_flags & FLAG_ACTIVE) == 0)
return false;
- javax.transaction.Transaction trans =
+ jakarta.transaction.Transaction trans =
_runtime.getTransactionManager().getTransaction();
if (trans == null)
return false;
@@ -1707,7 +1707,7 @@ public class BrokerImpl implements Broker, FindCallbacks, Cloneable, Serializabl
if ((_flags & FLAG_ACTIVE) == 0)
return null;
- javax.transaction.Transaction trans =
+ jakarta.transaction.Transaction trans =
_runtime.getTransactionManager().getTransaction();
if (trans == null)
return null;
@@ -1745,7 +1745,7 @@ public class BrokerImpl implements Broker, FindCallbacks, Cloneable, Serializabl
*/
private void setRollbackOnlyInternal(Throwable cause) {
try {
- javax.transaction.Transaction trans =
+ jakarta.transaction.Transaction trans =
_runtime.getTransactionManager().getTransaction();
if (trans == null)
throw new InvalidStateException(_loc.get("null-trans"));
diff --git a/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/FetchConfigurationImpl.java b/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/FetchConfigurationImpl.java
index 118eacb8d..bc8f1ad1d 100644
--- a/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/FetchConfigurationImpl.java
+++ b/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/FetchConfigurationImpl.java
@@ -68,7 +68,7 @@ public class FetchConfigurationImpl
/**
* Registers hint keys that have a corresponding setter method.
* The hint keys are registered in openjpa.FetchPlan
and openjpa
as prefix.
- * Also some keys are registered in javax.persistence
namespace.
+ * Also some keys are registered in jakarta.persistence
namespace.
*/
static {
String[] prefixes = {"openjpa.FetchPlan", "openjpa"};
@@ -78,10 +78,10 @@ public class FetchConfigurationImpl
populateHintSetter(target, "FlushBeforeQueries", int.class, prefixes);
populateHintSetter(target, "LockScope", int.class, prefixes);
populateHintSetter(target, "LockTimeout", int.class, prefixes);
- populateHintSetter(target, "setLockTimeout", "timeout", int.class, "javax.persistence.lock");
+ populateHintSetter(target, "setLockTimeout", "timeout", int.class, "jakarta.persistence.lock");
populateHintSetter(target, "MaxFetchDepth", int.class, prefixes);
populateHintSetter(target, "QueryTimeout", int.class, prefixes);
- populateHintSetter(target, "setQueryTimeout", "timeout", int.class, "javax.persistence.query");
+ populateHintSetter(target, "setQueryTimeout", "timeout", int.class, "jakarta.persistence.query");
populateHintSetter(target, "ReadLockLevel", int.class, prefixes);
populateHintSetter(target, "setReadLockLevel", "ReadLockMode", int.class, prefixes);
populateHintSetter(target, "WriteLockLevel", int.class, prefixes);
diff --git a/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/LocalManagedRuntime.java b/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/LocalManagedRuntime.java
index 7bab6acde..3932c1f33 100644
--- a/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/LocalManagedRuntime.java
+++ b/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/LocalManagedRuntime.java
@@ -18,12 +18,12 @@
*/
package org.apache.openjpa.kernel;
-import javax.transaction.NotSupportedException;
-import javax.transaction.Status;
-import javax.transaction.Synchronization;
-import javax.transaction.SystemException;
-import javax.transaction.Transaction;
-import javax.transaction.TransactionManager;
+import jakarta.transaction.NotSupportedException;
+import jakarta.transaction.Status;
+import jakarta.transaction.Synchronization;
+import jakarta.transaction.SystemException;
+import jakarta.transaction.Transaction;
+import jakarta.transaction.TransactionManager;
import javax.transaction.xa.XAResource;
import org.apache.openjpa.ee.AbstractManagedRuntime;
diff --git a/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/jpql/JPQLParser.java b/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/jpql/JPQLParser.java
index a55298a8d..8df93c0fa 100644
--- a/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/jpql/JPQLParser.java
+++ b/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/jpql/JPQLParser.java
@@ -40,7 +40,7 @@ public class JPQLParser
private static final long serialVersionUID = 1L;
private static final Localizer _loc =
Localizer.forPackage(JPQLParser.class);
- public static final String LANG_JPQL = "javax.persistence.JPQL";
+ public static final String LANG_JPQL = "jakarta.persistence.JPQL";
@Override
public Object parse(String ql, ExpressionStoreQuery query) {
diff --git a/openjpa-kernel/src/main/resources/org/apache/openjpa/datacache/localizer.properties b/openjpa-kernel/src/main/resources/org/apache/openjpa/datacache/localizer.properties
index 09820dbc0..2aad2f9a0 100644
--- a/openjpa-kernel/src/main/resources/org/apache/openjpa/datacache/localizer.properties
+++ b/openjpa-kernel/src/main/resources/org/apache/openjpa/datacache/localizer.properties
@@ -116,4 +116,4 @@ invalid-types-excluded-types: Failed to configure openjpa.DataCache Types, Exclu
Types "{0}" were found in both lists, but can only appear one of the lists.
recommend_jpa2_caching: You have specified the openjpa.DataCache property "{0}", but using that \
property is not recommended. Use the JPA 2.0 shared-cache-mode element "{1}" \
- in conjunction with the javax.persistence.Cacheable annotation instead.
+ in conjunction with the jakarta.persistence.Cacheable annotation instead.
diff --git a/openjpa-kernel/src/test/java/org/apache/openjpa/ee/TestOSGiManagedRuntime.java b/openjpa-kernel/src/test/java/org/apache/openjpa/ee/TestOSGiManagedRuntime.java
index 16b97ea84..fb9eb35a5 100644
--- a/openjpa-kernel/src/test/java/org/apache/openjpa/ee/TestOSGiManagedRuntime.java
+++ b/openjpa-kernel/src/test/java/org/apache/openjpa/ee/TestOSGiManagedRuntime.java
@@ -24,14 +24,14 @@ import java.util.ArrayList;
import java.util.Dictionary;
import java.util.List;
-import javax.transaction.HeuristicMixedException;
-import javax.transaction.HeuristicRollbackException;
-import javax.transaction.InvalidTransactionException;
-import javax.transaction.NotSupportedException;
-import javax.transaction.RollbackException;
-import javax.transaction.SystemException;
-import javax.transaction.Transaction;
-import javax.transaction.TransactionManager;
+import jakarta.transaction.HeuristicMixedException;
+import jakarta.transaction.HeuristicRollbackException;
+import jakarta.transaction.InvalidTransactionException;
+import jakarta.transaction.NotSupportedException;
+import jakarta.transaction.RollbackException;
+import jakarta.transaction.SystemException;
+import jakarta.transaction.Transaction;
+import jakarta.transaction.TransactionManager;
import org.apache.openjpa.util.InternalException;
import org.junit.Test;
@@ -52,11 +52,11 @@ import junit.framework.AssertionFailedError;
import static org.junit.Assert.*;
/**
- * Test javax.transaction.TransactionManager OSGi service discovery.
+ * Test jakarta.transaction.TransactionManager OSGi service discovery.
*/
public class TestOSGiManagedRuntime {
- private static final String TXN_MANAGER_CLASS_NAME = "javax.transaction.TransactionManager";
+ private static final String TXN_MANAGER_CLASS_NAME = "jakarta.transaction.TransactionManager";
/**
* A transaction manager instance an nothing more.
@@ -155,7 +155,7 @@ public class TestOSGiManagedRuntime {
};
/**
- * A fake bundle context with a reference counter for a javax.transaction.TRansactionManager
+ * A fake bundle context with a reference counter for a jakarta.transaction.TRansactionManager
*/
private static final class TestBundleContext implements BundleContext {
diff --git a/openjpa-kubernetes/pom.xml b/openjpa-kubernetes/pom.xml
index 16386ea4e..2707f1a34 100644
--- a/openjpa-kubernetes/pom.xml
+++ b/openjpa-kubernetes/pom.xml
@@ -28,7 +28,7 @@
Allows override of complex embedded or superclass mappings.
diff --git a/openjpa-persistence-jdbc/src/main/java/org/apache/openjpa/persistence/jdbc/XSecondaryTable.java b/openjpa-persistence-jdbc/src/main/java/org/apache/openjpa/persistence/jdbc/XSecondaryTable.java index e2b30c5fc..7b9b131cc 100644 --- a/openjpa-persistence-jdbc/src/main/java/org/apache/openjpa/persistence/jdbc/XSecondaryTable.java +++ b/openjpa-persistence-jdbc/src/main/java/org/apache/openjpa/persistence/jdbc/XSecondaryTable.java @@ -24,7 +24,7 @@ import static java.lang.annotation.RetentionPolicy.RUNTIME; import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.persistence.PrimaryKeyJoinColumn; +import jakarta.persistence.PrimaryKeyJoinColumn; /** * Extended secondary table. diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/audit/AuditedEntry.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/audit/AuditedEntry.java index 6c12a0e63..8d1944be9 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/audit/AuditedEntry.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/audit/AuditedEntry.java @@ -24,16 +24,16 @@ import java.util.Collection; import java.util.Date; import java.util.List; -import javax.persistence.CascadeType; -import javax.persistence.ElementCollection; -import javax.persistence.Entity; -import javax.persistence.EnumType; -import javax.persistence.Enumerated; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.ManyToOne; -import javax.persistence.Temporal; -import javax.persistence.TemporalType; +import jakarta.persistence.CascadeType; +import jakarta.persistence.ElementCollection; +import jakarta.persistence.Entity; +import jakarta.persistence.EnumType; +import jakarta.persistence.Enumerated; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.Temporal; +import jakarta.persistence.TemporalType; import org.apache.openjpa.enhance.PersistenceCapable; import org.apache.openjpa.kernel.Audited; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/audit/TestAudit.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/audit/TestAudit.java index 1e8f54d30..36f574e65 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/audit/TestAudit.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/audit/TestAudit.java @@ -23,8 +23,8 @@ import java.lang.ref.ReferenceQueue; import java.lang.ref.WeakReference; import java.util.List; -import javax.persistence.EntityManager; -import javax.persistence.Persistence; +import jakarta.persistence.EntityManager; +import jakarta.persistence.Persistence; import org.apache.openjpa.persistence.OpenJPAEntityManagerFactory; import org.apache.openjpa.persistence.OpenJPAPersistence; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/audit/TestBeginEventOnTransactionListener.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/audit/TestBeginEventOnTransactionListener.java index dcb51bb57..d4108064a 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/audit/TestBeginEventOnTransactionListener.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/audit/TestBeginEventOnTransactionListener.java @@ -20,8 +20,8 @@ package org.apache.openjpa.audit; import java.util.Collection; -import javax.persistence.EntityManager; -import javax.persistence.EntityManagerFactory; +import jakarta.persistence.EntityManager; +import jakarta.persistence.EntityManagerFactory; import org.apache.openjpa.ee.ManagedRuntime; import org.apache.openjpa.kernel.Audited; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/audit/X.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/audit/X.java index af0dae42b..8be812a9f 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/audit/X.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/audit/X.java @@ -20,8 +20,8 @@ package org.apache.openjpa.audit; import java.util.concurrent.atomic.AtomicLong; -import javax.persistence.Entity; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; /** diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/conf/TestAutoDetachProperty.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/conf/TestAutoDetachProperty.java index ee7608a2c..8d9b4dd21 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/conf/TestAutoDetachProperty.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/conf/TestAutoDetachProperty.java @@ -21,9 +21,9 @@ package org.apache.openjpa.conf; import java.util.EnumSet; import java.util.HashMap; -import javax.persistence.EntityManager; -import javax.persistence.EntityManagerFactory; -import javax.persistence.Persistence; +import jakarta.persistence.EntityManager; +import jakarta.persistence.EntityManagerFactory; +import jakarta.persistence.Persistence; import org.apache.openjpa.persistence.AutoDetachType; import org.apache.openjpa.persistence.OpenJPAEntityManagerFactory; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/conf/TestBadAutoDetachProperty.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/conf/TestBadAutoDetachProperty.java index 0d4013ddf..4531adac3 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/conf/TestBadAutoDetachProperty.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/conf/TestBadAutoDetachProperty.java @@ -20,9 +20,9 @@ package org.apache.openjpa.conf; import java.util.HashMap; -import javax.persistence.EntityManager; -import javax.persistence.EntityManagerFactory; -import javax.persistence.PersistenceException; +import jakarta.persistence.EntityManager; +import jakarta.persistence.EntityManagerFactory; +import jakarta.persistence.PersistenceException; import org.apache.openjpa.lib.util.ParseException; import org.apache.openjpa.persistence.test.AbstractPersistenceTestCase; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/conf/TestBadJdbcUrl.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/conf/TestBadJdbcUrl.java index 1f4b605d9..c58c5da04 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/conf/TestBadJdbcUrl.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/conf/TestBadJdbcUrl.java @@ -20,10 +20,10 @@ package org.apache.openjpa.conf; import java.util.Properties; -import javax.persistence.EntityManager; -import javax.persistence.EntityManagerFactory; -import javax.persistence.Persistence; -import javax.persistence.PersistenceException; +import jakarta.persistence.EntityManager; +import jakarta.persistence.EntityManagerFactory; +import jakarta.persistence.Persistence; +import jakarta.persistence.PersistenceException; import org.apache.openjpa.persistence.OpenJPAPersistence; import org.apache.openjpa.util.UserException; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/conf/TestCacheMarshallerEndToEnd.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/conf/TestCacheMarshallerEndToEnd.java index 811f7ba1d..22133c19a 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/conf/TestCacheMarshallerEndToEnd.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/conf/TestCacheMarshallerEndToEnd.java @@ -22,8 +22,8 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import javax.persistence.EntityManager; -import javax.persistence.Query; +import jakarta.persistence.EntityManager; +import jakarta.persistence.Query; import org.apache.openjpa.lib.log.Log; import org.apache.openjpa.persistence.JPAFacadeHelper; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/conf/TestDynamicConfiguration.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/conf/TestDynamicConfiguration.java index fe5e8e87f..8539c5a6b 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/conf/TestDynamicConfiguration.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/conf/TestDynamicConfiguration.java @@ -18,7 +18,7 @@ */ package org.apache.openjpa.conf; -import javax.persistence.EntityManager; +import jakarta.persistence.EntityManager; import org.apache.openjpa.lib.conf.Value; import org.apache.openjpa.meta.ClassMetaData; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/conf/TestGetProperty.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/conf/TestGetProperty.java index ae1748f7e..18ca885fe 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/conf/TestGetProperty.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/conf/TestGetProperty.java @@ -21,9 +21,9 @@ package org.apache.openjpa.conf; import java.util.ArrayList; import java.util.Collection; -import javax.persistence.EntityManager; -import javax.persistence.EntityManagerFactory; -import javax.persistence.Persistence; +import jakarta.persistence.EntityManager; +import jakarta.persistence.EntityManagerFactory; +import jakarta.persistence.Persistence; import org.apache.openjpa.persistence.OpenJPAEntityManagerFactory; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/conf/TestQueryHints.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/conf/TestQueryHints.java index 6f3020940..d278aed03 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/conf/TestQueryHints.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/conf/TestQueryHints.java @@ -18,8 +18,8 @@ */ package org.apache.openjpa.conf; -import javax.persistence.EntityManager; -import javax.persistence.Query; +import jakarta.persistence.EntityManager; +import jakarta.persistence.Query; import org.apache.openjpa.jdbc.sql.MariaDBDictionary; import org.apache.openjpa.jdbc.sql.MySQLDictionary; @@ -73,7 +73,7 @@ public class TestQueryHints extends SingleEMFTestCase { } public void testSupportedHintsContainJPAQueryHints() { - assertSupportedHint("javax.persistence.query.timeout", true); + assertSupportedHint("jakarta.persistence.query.timeout", true); } public void testUnrecognizedKeyIsIgnored() { @@ -149,15 +149,15 @@ public class TestQueryHints extends SingleEMFTestCase { } public void testJPAHintSetsFetchPlan() { - query.setHint("javax.persistence.lock.timeout", 5671); - query.setHint("javax.persistence.query.timeout", 7500); + query.setHint("jakarta.persistence.lock.timeout", 5671); + query.setHint("jakarta.persistence.query.timeout", 7500); assertEquals(5671, query.getFetchPlan().getLockTimeout()); assertEquals(7500, query.getFetchPlan().getQueryTimeout()); } public void testInvalidLockTimeoutHint() { try { - query.setHint("javax.persistence.lock.timeout", -5671); + query.setHint("jakarta.persistence.lock.timeout", -5671); fail("Expected setHint to fail with an IllegalArgumentException"); } catch (IllegalArgumentException e) { // expected @@ -166,7 +166,7 @@ public class TestQueryHints extends SingleEMFTestCase { public void testInvalidQueryTimeoutHint() { try { - query.setHint("javax.persistence.query.timeout", -7500); + query.setHint("jakarta.persistence.query.timeout", -7500); fail("Expected setHint to fail with an IllegalArgumentException"); } catch (IllegalArgumentException e) { // expected diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/conf/TestQueryProperties.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/conf/TestQueryProperties.java index 38c2328a4..158b5283f 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/conf/TestQueryProperties.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/conf/TestQueryProperties.java @@ -53,8 +53,8 @@ public class TestQueryProperties extends SingleEMFTestCase { super.setUp(QTimeout.class, CLEAR_TABLES); // create the Map to test overrides props = new HashMap<>(); - props.put("javax.persistence.lock.timeout", "12000"); - props.put("javax.persistence.query.timeout", "7000"); + props.put("jakarta.persistence.lock.timeout", "12000"); + props.put("jakarta.persistence.query.timeout", "7000"); } public void testNoProperties() { @@ -93,8 +93,8 @@ public class TestQueryProperties extends SingleEMFTestCase { q = em1.createNamedQuery("NoHintList"); // verify no Query hints hints = q.getHints(); - assertFalse(hints.containsKey("javax.persistence.lock.timeout")); - assertFalse(hints.containsKey("javax.persistence.query.timeout")); + assertFalse(hints.containsKey("jakarta.persistence.lock.timeout")); + assertFalse(hints.containsKey("jakarta.persistence.query.timeout")); // verify default config values of no timeouts timeout = q.getFetchPlan().getLockTimeout(); assertEquals("Expected no default lock timeout", lTime.intValue(), @@ -130,14 +130,14 @@ public class TestQueryProperties extends SingleEMFTestCase { * return these default values. * hints = q.getHints(); - assertTrue(hints.containsKey("javax.persistence.lock.timeout")); - assertTrue(hints.containsKey("javax.persistence.query.timeout")); + assertTrue(hints.containsKey("jakarta.persistence.lock.timeout")); + assertTrue(hints.containsKey("jakarta.persistence.query.timeout")); timeout = new Integer((String) hints.get( - "javax.persistence.lock.timeout")); + "jakarta.persistence.lock.timeout")); assertEquals("Expected Map updated lockTimeout", lTime.intValue(), timeout.intValue()); timeout = new Integer((String) hints.get( - "javax.persistence.query.timeout")); + "jakarta.persistence.query.timeout")); assertEquals("Expected Map updated queryTimeout", qTime.intValue(), timeout.intValue()); */ @@ -155,17 +155,17 @@ public class TestQueryProperties extends SingleEMFTestCase { // verify setHint overrides Map provided properties lTime = 15000; qTime = 10000; - q.setHint("javax.persistence.lock.timeout", lTime); - q.setHint("javax.persistence.query.timeout", qTime); + q.setHint("jakarta.persistence.lock.timeout", lTime); + q.setHint("jakarta.persistence.query.timeout", qTime); hints = q.getHints(); // verify getHints values were updated - timeout = (Integer) hints.get("javax.persistence.lock.timeout"); + timeout = (Integer) hints.get("jakarta.persistence.lock.timeout"); assertEquals( - "Expected setHint updated javax.persistence.lock.timeout", + "Expected setHint updated jakarta.persistence.lock.timeout", lTime.intValue(), timeout.intValue()); - timeout = (Integer) hints.get("javax.persistence.query.timeout"); + timeout = (Integer) hints.get("jakarta.persistence.query.timeout"); assertEquals( - "Expected setHint updated javax.persistence.query.timeout", + "Expected setHint updated jakarta.persistence.query.timeout", qTime.intValue(), timeout.intValue()); // verify internal config values were updated timeout = q.getFetchPlan().getLockTimeout(); @@ -260,7 +260,7 @@ public class TestQueryProperties extends SingleEMFTestCase { // verify getHints values were updated hints = q.getHints(); timeout = new Integer((String)hints.get( - "javax.persistence.query.timeout")); + "jakarta.persistence.query.timeout")); assertEquals("Expected QueryHints updated query timeout", qTime.intValue(), timeout.intValue()); // verify internal config value was updated @@ -274,14 +274,14 @@ public class TestQueryProperties extends SingleEMFTestCase { // verify setHint overrides QueryHint provided properties lTime = 15000; qTime = 10000; - q.setHint("javax.persistence.lock.timeout", lTime); - q.setHint("javax.persistence.query.timeout", qTime); + q.setHint("jakarta.persistence.lock.timeout", lTime); + q.setHint("jakarta.persistence.query.timeout", qTime); // verify getHints values were updated hints = q.getHints(); - timeout = (Integer) hints.get("javax.persistence.lock.timeout"); + timeout = (Integer) hints.get("jakarta.persistence.lock.timeout"); assertEquals("Expected setHint updated lock timeout", lTime.intValue(), timeout.intValue()); - timeout = (Integer) hints.get("javax.persistence.query.timeout"); + timeout = (Integer) hints.get("jakarta.persistence.query.timeout"); assertEquals("Expected setHint updated query timeout", qTime.intValue(), timeout.intValue()); // verify internal config values were updated diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/conf/TestSpecificationConfiguration.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/conf/TestSpecificationConfiguration.java index c351a5bb2..0f7ceae23 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/conf/TestSpecificationConfiguration.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/conf/TestSpecificationConfiguration.java @@ -18,7 +18,7 @@ */ package org.apache.openjpa.conf; -import javax.persistence.PersistenceException; +import jakarta.persistence.PersistenceException; import org.apache.openjpa.persistence.OpenJPAEntityManagerFactorySPI; import org.apache.openjpa.persistence.OpenJPAPersistence; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/EnhancedSubClass.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/EnhancedSubClass.java index adadbd4d9..fcfab979a 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/EnhancedSubClass.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/EnhancedSubClass.java @@ -21,7 +21,7 @@ package org.apache.openjpa.enhance; import java.io.Serializable; -import javax.persistence.Entity; +import jakarta.persistence.Entity; /** * @see TestClassHierarchyEnhancement diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/EnhancedSuperClass.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/EnhancedSuperClass.java index a00a674d8..a223ece4d 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/EnhancedSuperClass.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/EnhancedSuperClass.java @@ -21,9 +21,9 @@ package org.apache.openjpa.enhance; import java.io.Serializable; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; /** * @see TestClassHierarchyEnhancement diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/TestDataCachingAndUnenhancedPropertyAccess.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/TestDataCachingAndUnenhancedPropertyAccess.java index aef5a2d97..e16cb23b4 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/TestDataCachingAndUnenhancedPropertyAccess.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/TestDataCachingAndUnenhancedPropertyAccess.java @@ -18,7 +18,7 @@ */ package org.apache.openjpa.enhance; -import javax.persistence.EntityManager; +import jakarta.persistence.EntityManager; import org.apache.openjpa.jdbc.conf.JDBCConfiguration; import org.apache.openjpa.persistence.OpenJPAEntityManager; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/TestSimpleUnenhancedQuery.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/TestSimpleUnenhancedQuery.java index 1d70c326f..2f8054f54 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/TestSimpleUnenhancedQuery.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/TestSimpleUnenhancedQuery.java @@ -17,7 +17,7 @@ */ package org.apache.openjpa.enhance; -import javax.persistence.EntityManager; +import jakarta.persistence.EntityManager; import org.apache.openjpa.persistence.test.SingleEMFTestCase; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedBootstrapInstance.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedBootstrapInstance.java index 130d78820..a6c611142 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedBootstrapInstance.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedBootstrapInstance.java @@ -18,8 +18,8 @@ */ package org.apache.openjpa.enhance; -import javax.persistence.Entity; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; @Entity public class UnenhancedBootstrapInstance { diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedBootstrapInstance2.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedBootstrapInstance2.java index 287c5e321..912fecfce 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedBootstrapInstance2.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedBootstrapInstance2.java @@ -18,8 +18,8 @@ */ package org.apache.openjpa.enhance; -import javax.persistence.Entity; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; @Entity public class UnenhancedBootstrapInstance2 { diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedCompoundPKFieldAccess.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedCompoundPKFieldAccess.java index 889967089..45977f2dc 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedCompoundPKFieldAccess.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedCompoundPKFieldAccess.java @@ -18,9 +18,9 @@ */ package org.apache.openjpa.enhance; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.IdClass; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.IdClass; import org.apache.openjpa.enhance.UnenhancedCompoundPKFieldAccess.PK; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedCompoundPKFieldAccessSubclass.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedCompoundPKFieldAccessSubclass.java index f79a4c9b6..3e0ad7c53 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedCompoundPKFieldAccessSubclass.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedCompoundPKFieldAccessSubclass.java @@ -17,8 +17,8 @@ */ package org.apache.openjpa.enhance; -import javax.persistence.Entity; -import javax.persistence.IdClass; +import jakarta.persistence.Entity; +import jakarta.persistence.IdClass; @Entity @IdClass(UnenhancedCompoundPKFieldAccessSubclass.PK.class) diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedCompoundPKFieldAccessSuperclass.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedCompoundPKFieldAccessSuperclass.java index ee7f0cfda..3720ead10 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedCompoundPKFieldAccessSuperclass.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedCompoundPKFieldAccessSuperclass.java @@ -17,9 +17,9 @@ */ package org.apache.openjpa.enhance; -import javax.persistence.Id; -import javax.persistence.IdClass; -import javax.persistence.MappedSuperclass; +import jakarta.persistence.Id; +import jakarta.persistence.IdClass; +import jakarta.persistence.MappedSuperclass; @MappedSuperclass @IdClass(UnenhancedCompoundPKFieldAccessSuperclass.PK.class) diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedCompoundPKPropertyAccess.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedCompoundPKPropertyAccess.java index 280ba7a43..1db5ab463 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedCompoundPKPropertyAccess.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedCompoundPKPropertyAccess.java @@ -18,9 +18,9 @@ */ package org.apache.openjpa.enhance; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.IdClass; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.IdClass; import org.apache.openjpa.enhance.UnenhancedCompoundPKPropertyAccess.PK; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedFieldAccess.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedFieldAccess.java index 49770a988..535f4e96a 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedFieldAccess.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedFieldAccess.java @@ -20,15 +20,15 @@ package org.apache.openjpa.enhance; import java.io.Serializable; -import javax.persistence.Basic; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.Inheritance; -import javax.persistence.InheritanceType; -import javax.persistence.Table; -import javax.persistence.Version; +import jakarta.persistence.Basic; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.Inheritance; +import jakarta.persistence.InheritanceType; +import jakarta.persistence.Table; +import jakarta.persistence.Version; @Entity @Table(name="UN_FIELD") diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedFieldAccessPrimitiveWrapper.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedFieldAccessPrimitiveWrapper.java index c41382ae6..3c7c8997c 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedFieldAccessPrimitiveWrapper.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedFieldAccessPrimitiveWrapper.java @@ -19,15 +19,15 @@ package org.apache.openjpa.enhance; import java.io.Serializable; -import javax.persistence.Basic; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.Inheritance; -import javax.persistence.InheritanceType; -import javax.persistence.Table; -import javax.persistence.Version; +import jakarta.persistence.Basic; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.Inheritance; +import jakarta.persistence.InheritanceType; +import jakarta.persistence.Table; +import jakarta.persistence.Version; @Entity @Table(name = "UN_FIELD_WRAP") diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedFieldAccessPrimitiveWrapperSubclass.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedFieldAccessPrimitiveWrapperSubclass.java index 931e666ed..b1bbee016 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedFieldAccessPrimitiveWrapperSubclass.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedFieldAccessPrimitiveWrapperSubclass.java @@ -17,9 +17,9 @@ */ package org.apache.openjpa.enhance; -import javax.persistence.CascadeType; -import javax.persistence.Entity; -import javax.persistence.OneToOne; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Entity; +import jakarta.persistence.OneToOne; @Entity public class UnenhancedFieldAccessPrimitiveWrapperSubclass diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedFieldAccessSubclass.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedFieldAccessSubclass.java index 662063efd..f88072171 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedFieldAccessSubclass.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedFieldAccessSubclass.java @@ -18,9 +18,9 @@ */ package org.apache.openjpa.enhance; -import javax.persistence.CascadeType; -import javax.persistence.Entity; -import javax.persistence.OneToOne; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Entity; +import jakarta.persistence.OneToOne; @Entity public class UnenhancedFieldAccessSubclass diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedIdentityIdPropertyAccess.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedIdentityIdPropertyAccess.java index 4e6446927..c25ad5008 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedIdentityIdPropertyAccess.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedIdentityIdPropertyAccess.java @@ -18,10 +18,10 @@ */ package org.apache.openjpa.enhance; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; @Entity public class UnenhancedIdentityIdPropertyAccess { diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedMany.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedMany.java index 6513e2be8..00478d933 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedMany.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedMany.java @@ -19,9 +19,9 @@ package org.apache.openjpa.enhance; import java.io.Serializable; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.ManyToOne; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.ManyToOne; @Entity public class UnenhancedMany implements Serializable, Cloneable { diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedOne.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedOne.java index 82591a376..8dc84a359 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedOne.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedOne.java @@ -21,9 +21,9 @@ import java.io.Serializable; import java.util.Collection; import java.util.HashSet; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.OneToMany; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.OneToMany; @Entity public class UnenhancedOne implements Serializable, Cloneable { diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedPObject.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedPObject.java index 027e973a8..b0d8c7df9 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedPObject.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedPObject.java @@ -17,7 +17,7 @@ */ package org.apache.openjpa.enhance; -import javax.persistence.Entity; +import jakarta.persistence.Entity; @Entity public class UnenhancedPObject { diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedPropertyAccess.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedPropertyAccess.java index 0ba2fb78b..0b1aad3a6 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedPropertyAccess.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedPropertyAccess.java @@ -20,15 +20,15 @@ package org.apache.openjpa.enhance; import java.io.Serializable; -import javax.persistence.Basic; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.Inheritance; -import javax.persistence.InheritanceType; -import javax.persistence.Table; -import javax.persistence.Version; +import jakarta.persistence.Basic; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.Inheritance; +import jakarta.persistence.InheritanceType; +import jakarta.persistence.Table; +import jakarta.persistence.Version; @Entity @Table(name="UN_PROP") diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedPropertyAccessSubclass.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedPropertyAccessSubclass.java index c198a345f..895d75c27 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedPropertyAccessSubclass.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedPropertyAccessSubclass.java @@ -18,9 +18,9 @@ */ package org.apache.openjpa.enhance; -import javax.persistence.CascadeType; -import javax.persistence.Entity; -import javax.persistence.OneToOne; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Entity; +import jakarta.persistence.OneToOne; import org.apache.openjpa.persistence.Type; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedUnlistedClass.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedUnlistedClass.java index 5bca64e0d..411a87545 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedUnlistedClass.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedUnlistedClass.java @@ -18,8 +18,8 @@ */ package org.apache.openjpa.enhance; -import javax.persistence.Entity; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; @Entity public class UnenhancedUnlistedClass { diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedUnlistedReferer.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedUnlistedReferer.java index b44ff2fed..c41098917 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedUnlistedReferer.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedUnlistedReferer.java @@ -18,9 +18,9 @@ */ package org.apache.openjpa.enhance; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.OneToOne; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.OneToOne; @Entity public class UnenhancedUnlistedReferer { diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/ids/Device.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/ids/Device.java index 9dfbb6306..92ba506f6 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/ids/Device.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/ids/Device.java @@ -18,11 +18,11 @@ */ package org.apache.openjpa.enhance.ids; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.IdClass; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.IdClass; +import jakarta.persistence.Table; @Entity @Table(name="ID_DEVTBL") diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/ids/Hardware.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/ids/Hardware.java index 218ba1d7f..8e0bb63cc 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/ids/Hardware.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/ids/Hardware.java @@ -18,10 +18,10 @@ */ package org.apache.openjpa.enhance.ids; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.IdClass; -import javax.persistence.Table; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.IdClass; +import jakarta.persistence.Table; @Table(name="ID_HWTBL") @IdClass(HardwareId.class) diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/ids/Software.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/ids/Software.java index f385a2cd2..e1c04ca88 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/ids/Software.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/ids/Software.java @@ -18,10 +18,10 @@ */ package org.apache.openjpa.enhance.ids; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.IdClass; -import javax.persistence.Table; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.IdClass; +import jakarta.persistence.Table; @Entity @Table(name="ID_SWTBL") diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/ids/TestOptimizeIdCopy.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/ids/TestOptimizeIdCopy.java index 9ccd9e893..47a76f01f 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/ids/TestOptimizeIdCopy.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/ids/TestOptimizeIdCopy.java @@ -21,8 +21,8 @@ package org.apache.openjpa.enhance.ids; import java.util.List; import java.util.Random; -import javax.persistence.EntityManager; -import javax.persistence.TypedQuery; +import jakarta.persistence.EntityManager; +import jakarta.persistence.TypedQuery; import org.apache.openjpa.persistence.test.SingleEMFTestCase; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/event/TestLifecycleListener.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/event/TestLifecycleListener.java index 11edffecb..9b56b7ec8 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/event/TestLifecycleListener.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/event/TestLifecycleListener.java @@ -18,7 +18,7 @@ */ package org.apache.openjpa.event; -import javax.persistence.EntityManager; +import jakarta.persistence.EntityManager; import org.apache.openjpa.persistence.simple.AllFieldTypes; import org.apache.openjpa.persistence.test.SingleEMFTestCase; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/event/TestSJVMRemoteCommitProvider.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/event/TestSJVMRemoteCommitProvider.java index 02b9e1b05..00c207308 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/event/TestSJVMRemoteCommitProvider.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/event/TestSJVMRemoteCommitProvider.java @@ -22,7 +22,7 @@ import java.util.Collections; import java.util.HashMap; import java.util.Map; -import javax.persistence.Persistence; +import jakarta.persistence.Persistence; import org.apache.openjpa.persistence.JPAFacadeHelper; import org.apache.openjpa.persistence.OpenJPAEntityManagerFactorySPI; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/instrumentation/CacheableEntity.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/instrumentation/CacheableEntity.java index 1d4dfdb5a..99de110e8 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/instrumentation/CacheableEntity.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/instrumentation/CacheableEntity.java @@ -18,10 +18,10 @@ */ package org.apache.openjpa.instrumentation; -import javax.persistence.Basic; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.Table; +import jakarta.persistence.Basic; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.Table; @Entity @Table(name="INST_CACHE_ENT") diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/instrumentation/TestInstrumentationProvider.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/instrumentation/TestInstrumentationProvider.java index 9a1911bc9..762eee37b 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/instrumentation/TestInstrumentationProvider.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/instrumentation/TestInstrumentationProvider.java @@ -21,7 +21,7 @@ package org.apache.openjpa.instrumentation; import java.util.Random; import java.util.Set; -import javax.persistence.EntityManager; +import jakarta.persistence.EntityManager; import org.apache.openjpa.lib.instrumentation.Instrument; import org.apache.openjpa.lib.instrumentation.InstrumentationProvider; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/A.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/A.java index 787e0be42..a70f60358 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/A.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/A.java @@ -21,10 +21,10 @@ package org.apache.openjpa.jdbc.kernel; import java.util.HashMap; import java.util.Map; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.Table; import org.apache.openjpa.persistence.PersistentMap; import org.apache.openjpa.persistence.jdbc.ContainerTable; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/Employee.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/Employee.java index a2d158791..56e5d5fca 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/Employee.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/Employee.java @@ -20,12 +20,12 @@ package org.apache.openjpa.jdbc.kernel; import java.util.Collection; -import javax.persistence.CascadeType; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.OneToMany; -import javax.persistence.Table; -import javax.persistence.Version; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.OneToMany; +import jakarta.persistence.Table; +import jakarta.persistence.Version; @Entity // Try not to collide with other Employee entities diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/EntityA.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/EntityA.java index abf0d816c..bea5e4153 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/EntityA.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/EntityA.java @@ -18,15 +18,15 @@ */ package org.apache.openjpa.jdbc.kernel; -import javax.persistence.CascadeType; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.OneToOne; -import javax.persistence.Version; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.OneToOne; +import jakarta.persistence.Version; import org.apache.openjpa.persistence.jdbc.ForeignKey; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/EntityB.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/EntityB.java index 1a12309d2..b7c3d009b 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/EntityB.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/EntityB.java @@ -18,15 +18,15 @@ */ package org.apache.openjpa.jdbc.kernel; -import javax.persistence.CascadeType; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.OneToOne; -import javax.persistence.Version; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.OneToOne; +import jakarta.persistence.Version; import org.apache.openjpa.persistence.jdbc.ForeignKey; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/EntityC.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/EntityC.java index ddef4b0b5..9a7ba2670 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/EntityC.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/EntityC.java @@ -18,15 +18,15 @@ */ package org.apache.openjpa.jdbc.kernel; -import javax.persistence.CascadeType; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.OneToOne; -import javax.persistence.Version; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.OneToOne; +import jakarta.persistence.Version; import org.apache.openjpa.persistence.Dependent; import org.apache.openjpa.persistence.jdbc.ForeignKey; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/EntityD.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/EntityD.java index 1fb345efb..8d958fc80 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/EntityD.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/EntityD.java @@ -18,14 +18,14 @@ */ package org.apache.openjpa.jdbc.kernel; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.OneToOne; -import javax.persistence.Version; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.OneToOne; +import jakarta.persistence.Version; import org.apache.openjpa.persistence.jdbc.ForeignKey; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/EntityE.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/EntityE.java index df5b83026..a643760c7 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/EntityE.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/EntityE.java @@ -18,14 +18,14 @@ */ package org.apache.openjpa.jdbc.kernel; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.OneToOne; -import javax.persistence.Version; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.OneToOne; +import jakarta.persistence.Version; import org.apache.openjpa.persistence.jdbc.ForeignKey; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/EntityF.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/EntityF.java index d378636a6..d2428a044 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/EntityF.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/EntityF.java @@ -19,10 +19,10 @@ package org.apache.openjpa.jdbc.kernel; import java.util.List; -import javax.persistence.CascadeType; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.OneToMany; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.OneToMany; @Entity public class EntityF { diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/EntityG.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/EntityG.java index f11367335..932e53886 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/EntityG.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/EntityG.java @@ -18,10 +18,10 @@ */ package org.apache.openjpa.jdbc.kernel; -import javax.persistence.CascadeType; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.ManyToOne; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.ManyToOne; import org.apache.openjpa.persistence.jdbc.ForeignKey; import org.apache.openjpa.persistence.jdbc.ForeignKeyAction; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/M21UniDepartment.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/M21UniDepartment.java index f6bed98e2..a9091d089 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/M21UniDepartment.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/M21UniDepartment.java @@ -18,9 +18,9 @@ */ package org.apache.openjpa.jdbc.kernel; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.Version; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.Version; @Entity public class M21UniDepartment { diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/M21UniEmployee.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/M21UniEmployee.java index 20b280740..b03b67ebc 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/M21UniEmployee.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/M21UniEmployee.java @@ -18,10 +18,10 @@ */ package org.apache.openjpa.jdbc.kernel; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.ManyToOne; -import javax.persistence.Version; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.Version; @Entity public class M21UniEmployee { diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/M2MBiDepartment.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/M2MBiDepartment.java index 18ca3a923..6671abecf 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/M2MBiDepartment.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/M2MBiDepartment.java @@ -21,11 +21,11 @@ package org.apache.openjpa.jdbc.kernel; import java.util.ArrayList; import java.util.Collection; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.Id; -import javax.persistence.ManyToMany; -import javax.persistence.Version; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.Id; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.Version; @Entity public class M2MBiDepartment { diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/M2MBiEmployee.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/M2MBiEmployee.java index bddd88551..14e3139ae 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/M2MBiEmployee.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/M2MBiEmployee.java @@ -21,11 +21,11 @@ package org.apache.openjpa.jdbc.kernel; import java.util.ArrayList; import java.util.Collection; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.Id; -import javax.persistence.ManyToMany; -import javax.persistence.Version; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.Id; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.Version; @Entity public class M2MBiEmployee { diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/OptSelectEntity.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/OptSelectEntity.java index b6d39a814..2b6d40ac6 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/OptSelectEntity.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/OptSelectEntity.java @@ -18,13 +18,13 @@ */ package org.apache.openjpa.jdbc.kernel; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.OneToOne; -import javax.persistence.Version; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.OneToOne; +import jakarta.persistence.Version; @Entity public class OptSelectEntity { diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/Story.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/Story.java index a70bc5154..34f9b85a8 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/Story.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/Story.java @@ -18,12 +18,12 @@ */ package org.apache.openjpa.jdbc.kernel; -import javax.persistence.CascadeType; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.ManyToOne; -import javax.persistence.Table; -import javax.persistence.Version; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.Table; +import jakarta.persistence.Version; @Entity @Table(name = "PER_JDBC_KERN_STORY") // try not to collide diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/Task.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/Task.java index c02091382..537b11864 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/Task.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/Task.java @@ -20,13 +20,13 @@ package org.apache.openjpa.jdbc.kernel; import java.util.Collection; -import javax.persistence.CascadeType; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.ManyToOne; -import javax.persistence.OneToMany; -import javax.persistence.Table; -import javax.persistence.Version; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.OneToMany; +import jakarta.persistence.Table; +import jakarta.persistence.Version; @Entity @Table(name = "PER_JDBC_KERN_TASK") diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/TestCollectionTracking.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/TestCollectionTracking.java index d8e4ade12..f1cdb0266 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/TestCollectionTracking.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/TestCollectionTracking.java @@ -20,8 +20,8 @@ package org.apache.openjpa.jdbc.kernel; import java.util.Iterator; -import javax.persistence.EntityManager; -import javax.persistence.Query; +import jakarta.persistence.EntityManager; +import jakarta.persistence.Query; import org.apache.openjpa.jdbc.conf.JDBCConfiguration; import org.apache.openjpa.persistence.test.SingleEMFTestCase; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/TestForeignKeyCountViolation.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/TestForeignKeyCountViolation.java index b9fb70d8a..7b4d154a3 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/TestForeignKeyCountViolation.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/TestForeignKeyCountViolation.java @@ -26,7 +26,7 @@ import java.util.HashMap; import java.util.List; import java.util.Map; -import javax.persistence.EntityManager; +import jakarta.persistence.EntityManager; import javax.sql.DataSource; import org.apache.openjpa.jdbc.conf.JDBCConfiguration; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/TestInsertOrder.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/TestInsertOrder.java index bf31d9608..6096310e6 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/TestInsertOrder.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/TestInsertOrder.java @@ -21,7 +21,7 @@ package org.apache.openjpa.jdbc.kernel; import java.util.ArrayList; import java.util.Collection; -import javax.persistence.EntityManager; +import jakarta.persistence.EntityManager; import org.apache.openjpa.persistence.test.SQLListenerTestCase; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/TestM21UniVersion.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/TestM21UniVersion.java index 73d005223..104f44efb 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/TestM21UniVersion.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/TestM21UniVersion.java @@ -18,7 +18,7 @@ */ package org.apache.openjpa.jdbc.kernel; -import javax.persistence.EntityManager; +import jakarta.persistence.EntityManager; import org.apache.openjpa.persistence.test.SingleEMFTestCase; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/TestM2MBiVersion.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/TestM2MBiVersion.java index 2f94250fd..fa01a2ced 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/TestM2MBiVersion.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/TestM2MBiVersion.java @@ -21,7 +21,7 @@ package org.apache.openjpa.jdbc.kernel; import java.util.Collection; import java.util.Iterator; -import javax.persistence.EntityManager; +import jakarta.persistence.EntityManager; import org.apache.openjpa.persistence.test.SingleEMFTestCase; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/TestNoForeignKeyViolation.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/TestNoForeignKeyViolation.java index 6413e38bb..487cac557 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/TestNoForeignKeyViolation.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/TestNoForeignKeyViolation.java @@ -21,7 +21,7 @@ package org.apache.openjpa.jdbc.kernel; import java.util.ArrayList; import java.util.List; -import javax.persistence.EntityManager; +import jakarta.persistence.EntityManager; import org.apache.openjpa.jdbc.conf.JDBCConfiguration; import org.apache.openjpa.persistence.test.SingleEMFTestCase; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/meta/EntityBool.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/meta/EntityBool.java index baa537911..b396432ac 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/meta/EntityBool.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/meta/EntityBool.java @@ -17,9 +17,9 @@ * under the License. */ package org.apache.openjpa.jdbc.meta; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; @Entity public class EntityBool { diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/meta/EntityBoolChar.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/meta/EntityBoolChar.java index 2b415d254..f4225b3eb 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/meta/EntityBoolChar.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/meta/EntityBoolChar.java @@ -18,9 +18,9 @@ */ package org.apache.openjpa.jdbc.meta; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; @Entity public class EntityBoolChar { diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/meta/TestBooleanValue.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/meta/TestBooleanValue.java index 1d1f1a4bc..2ba158146 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/meta/TestBooleanValue.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/meta/TestBooleanValue.java @@ -18,8 +18,8 @@ */ package org.apache.openjpa.jdbc.meta; -import javax.persistence.EntityManager; -import javax.persistence.Query; +import jakarta.persistence.EntityManager; +import jakarta.persistence.Query; import org.apache.openjpa.jdbc.conf.JDBCConfiguration; import org.apache.openjpa.jdbc.identifier.DBIdentifier; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/meta/TestMappingToolAutoDelete.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/meta/TestMappingToolAutoDelete.java index a50448270..371798f85 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/meta/TestMappingToolAutoDelete.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/meta/TestMappingToolAutoDelete.java @@ -23,8 +23,8 @@ import java.sql.SQLException; import java.util.HashMap; import java.util.Map; -import javax.persistence.EntityManager; -import javax.persistence.Persistence; +import jakarta.persistence.EntityManager; +import jakarta.persistence.Persistence; import org.apache.openjpa.jdbc.conf.JDBCConfiguration; import org.apache.openjpa.jdbc.schema.SchemaTool; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/meta/strats/AbstractLobTest.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/meta/strats/AbstractLobTest.java index 26491f16d..dbd6bdd1d 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/meta/strats/AbstractLobTest.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/meta/strats/AbstractLobTest.java @@ -24,8 +24,8 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import javax.persistence.EntityManager; -import javax.persistence.Query; +import jakarta.persistence.EntityManager; +import jakarta.persistence.Query; import org.apache.openjpa.conf.OpenJPAConfiguration; import org.apache.openjpa.datacache.DataCachePCData; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/meta/strats/InputStreamLobEntity.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/meta/strats/InputStreamLobEntity.java index 0281a90bc..7d3694866 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/meta/strats/InputStreamLobEntity.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/meta/strats/InputStreamLobEntity.java @@ -20,8 +20,8 @@ package org.apache.openjpa.jdbc.meta.strats; import java.io.InputStream; -import javax.persistence.Entity; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; import org.apache.openjpa.persistence.Persistent; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/meta/strats/ReaderLobEntity.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/meta/strats/ReaderLobEntity.java index dead3049a..34fa0bbac 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/meta/strats/ReaderLobEntity.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/meta/strats/ReaderLobEntity.java @@ -20,8 +20,8 @@ package org.apache.openjpa.jdbc.meta.strats; import java.io.Reader; -import javax.persistence.Entity; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; import org.apache.openjpa.persistence.Persistent; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/TestOracleXmlColumn.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/TestOracleXmlColumn.java index bb693dc66..16e06a4f0 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/TestOracleXmlColumn.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/TestOracleXmlColumn.java @@ -22,8 +22,8 @@ import java.sql.Connection; import java.sql.SQLException; import java.sql.Statement; -import javax.persistence.EntityManager; -import javax.persistence.EntityTransaction; +import jakarta.persistence.EntityManager; +import jakarta.persistence.EntityTransaction; import javax.sql.DataSource; import org.apache.openjpa.jdbc.conf.JDBCConfiguration; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/XmlColEntity.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/XmlColEntity.java index 9c0a0fff5..8af5c8032 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/XmlColEntity.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/XmlColEntity.java @@ -18,12 +18,12 @@ */ package org.apache.openjpa.jdbc.oracle; -import javax.persistence.Basic; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.Lob; -import javax.persistence.Version; +import jakarta.persistence.Basic; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.Lob; +import jakarta.persistence.Version; @Entity public class XmlColEntity { diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/persistence/classcriteria/Artist.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/persistence/classcriteria/Artist.java index 0509fe81b..f06e57e79 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/persistence/classcriteria/Artist.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/persistence/classcriteria/Artist.java @@ -20,13 +20,13 @@ package org.apache.openjpa.jdbc.persistence.classcriteria; import java.util.Collection; -import javax.persistence.CascadeType; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.Id; -import javax.persistence.OneToMany; -import javax.persistence.Table; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.Id; +import jakarta.persistence.OneToMany; +import jakarta.persistence.Table; @Entity @Table(name = "ARTIST") diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/persistence/classcriteria/Book.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/persistence/classcriteria/Book.java index aebdabd15..f3d27f8ab 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/persistence/classcriteria/Book.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/persistence/classcriteria/Book.java @@ -18,12 +18,12 @@ */ package org.apache.openjpa.jdbc.persistence.classcriteria; -import javax.persistence.CascadeType; -import javax.persistence.Column; -import javax.persistence.DiscriminatorValue; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.ManyToOne; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Column; +import jakarta.persistence.DiscriminatorValue; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.ManyToOne; @Entity @DiscriminatorValue(value = "BOOK") diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/persistence/classcriteria/Item.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/persistence/classcriteria/Item.java index 6ca29dc89..7a610a941 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/persistence/classcriteria/Item.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/persistence/classcriteria/Item.java @@ -20,16 +20,16 @@ package org.apache.openjpa.jdbc.persistence.classcriteria; import java.io.Serializable; -import javax.persistence.Column; -import javax.persistence.DiscriminatorColumn; -import javax.persistence.DiscriminatorType; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.Inheritance; -import javax.persistence.InheritanceType; -import javax.persistence.Table; -import javax.persistence.Transient; +import jakarta.persistence.Column; +import jakarta.persistence.DiscriminatorColumn; +import jakarta.persistence.DiscriminatorType; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.Inheritance; +import jakarta.persistence.InheritanceType; +import jakarta.persistence.Table; +import jakarta.persistence.Transient; @Entity @Table(name = "ITEMTABLE") diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/persistence/classcriteria/Movie.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/persistence/classcriteria/Movie.java index 781e61a59..3a3c4c25b 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/persistence/classcriteria/Movie.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/persistence/classcriteria/Movie.java @@ -18,12 +18,12 @@ */ package org.apache.openjpa.jdbc.persistence.classcriteria; -import javax.persistence.CascadeType; -import javax.persistence.Column; -import javax.persistence.DiscriminatorValue; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.ManyToOne; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Column; +import jakarta.persistence.DiscriminatorValue; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.ManyToOne; @Entity @DiscriminatorValue(value = "MOVIE") diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/procedure/TestStoredProcedure.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/procedure/TestStoredProcedure.java index 5d8ef187c..42acb9af6 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/procedure/TestStoredProcedure.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/procedure/TestStoredProcedure.java @@ -20,9 +20,9 @@ package org.apache.openjpa.jdbc.procedure; import java.util.Iterator; -import javax.persistence.EntityManager; -import javax.persistence.EntityTransaction; -import javax.persistence.StoredProcedureQuery; +import jakarta.persistence.EntityManager; +import jakarta.persistence.EntityTransaction; +import jakarta.persistence.StoredProcedureQuery; import org.apache.openjpa.jdbc.procedure.derby.Procedures; import org.apache.openjpa.jdbc.procedure.entity.EntityWithStoredProcedure; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/procedure/entity/EntityWithStoredProcedure.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/procedure/entity/EntityWithStoredProcedure.java index 673e8c1b2..5b725ef57 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/procedure/entity/EntityWithStoredProcedure.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/procedure/entity/EntityWithStoredProcedure.java @@ -18,17 +18,17 @@ */ package org.apache.openjpa.jdbc.procedure.entity; -import static javax.persistence.ParameterMode.INOUT; -import static javax.persistence.ParameterMode.OUT; +import static jakarta.persistence.ParameterMode.INOUT; +import static jakarta.persistence.ParameterMode.OUT; -import javax.persistence.Entity; -import javax.persistence.EntityResult; -import javax.persistence.Id; -import javax.persistence.NamedStoredProcedureQueries; -import javax.persistence.NamedStoredProcedureQuery; -import javax.persistence.SqlResultSetMapping; -import javax.persistence.SqlResultSetMappings; -import javax.persistence.StoredProcedureParameter; +import jakarta.persistence.Entity; +import jakarta.persistence.EntityResult; +import jakarta.persistence.Id; +import jakarta.persistence.NamedStoredProcedureQueries; +import jakarta.persistence.NamedStoredProcedureQuery; +import jakarta.persistence.SqlResultSetMapping; +import jakarta.persistence.SqlResultSetMappings; +import jakarta.persistence.StoredProcedureParameter; @Entity @NamedStoredProcedureQueries({ diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/sql/DelimitedIdentifiersAllFieldTypesEntity.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/sql/DelimitedIdentifiersAllFieldTypesEntity.java new file mode 100644 index 000000000..210a3747c --- /dev/null +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/sql/DelimitedIdentifiersAllFieldTypesEntity.java @@ -0,0 +1,418 @@ +/* + * 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.openjpa.jdbc.sql; + +import java.io.Serializable; +import java.math.BigDecimal; +import java.math.BigInteger; +import java.time.LocalDate; +import java.time.LocalDateTime; +import java.time.LocalTime; +import java.time.OffsetDateTime; +import java.time.OffsetTime; +import java.util.ArrayList; +import java.util.Calendar; +import java.util.Date; +import java.util.HashSet; +import java.util.List; +import java.util.Set; + +import org.apache.openjpa.persistence.PersistentCollection; + +import jakarta.persistence.Entity; +import jakarta.persistence.OneToMany; +import jakarta.persistence.OneToOne; + +@Entity +public class DelimitedIdentifiersAllFieldTypesEntity { + + public enum EnumType { + Value1, Value2 + } + + // @Basic types + private short shortField; + private int intField; + private boolean booleanField; + private long longField; + private float floatField; + private char charField; + private double doubleField; + private byte byteField; + private Short wShortField; + private Integer wIntegerField; + private Boolean wBooleanField; + private Long wLongField; + private Float wFloatField; + private Character wCharacterField; + private Double wDoubleField; + private Byte wByteField; + private BigInteger bigIntegerField; + private BigDecimal bigDecimalField; + private String stringField; + private Date dateField; + private Calendar calendarField; + private java.sql.Date sqlDateField; + private java.sql.Time sqlTimeField; + private java.sql.Timestamp sqlTimestampField; + private byte[] byteLob; + private Byte[] wByteLob; + private char[] charLob; + private Character[] wCharacterLob; + private EnumType enumField; + private Serializable serializableField; + + // Additional types + private SetPersitent type used in testing.
diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/common/apps/SelfReferencingCacheTestObject.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/common/apps/SelfReferencingCacheTestObject.java index 6e93ae99d..0f02cc910 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/common/apps/SelfReferencingCacheTestObject.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/common/apps/SelfReferencingCacheTestObject.java @@ -18,9 +18,9 @@ */ package org.apache.openjpa.persistence.datacache.common.apps; -import javax.persistence.CascadeType; -import javax.persistence.Entity; -import javax.persistence.ManyToOne; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Entity; +import jakarta.persistence.ManyToOne; @Entity public class SelfReferencingCacheTestObject { diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/common/apps/TransactionalClassPC.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/common/apps/TransactionalClassPC.java index eae002b96..4b6a99786 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/common/apps/TransactionalClassPC.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/common/apps/TransactionalClassPC.java @@ -18,7 +18,7 @@ */ package org.apache.openjpa.persistence.datacache.common.apps; -import javax.persistence.Entity; +import jakarta.persistence.Entity; @Entity public class TransactionalClassPC { diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/entities/ContactInfo.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/entities/ContactInfo.java index f4b856e78..41180dd14 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/entities/ContactInfo.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/entities/ContactInfo.java @@ -18,9 +18,9 @@ */ package org.apache.openjpa.persistence.datacache.entities; -import javax.persistence.CascadeType; -import javax.persistence.Embeddable; -import javax.persistence.OneToOne; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Embeddable; +import jakarta.persistence.OneToOne; @Embeddable public class ContactInfo { diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/entities/Person.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/entities/Person.java index e26687ad5..b9473cb55 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/entities/Person.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/entities/Person.java @@ -18,14 +18,14 @@ */ package org.apache.openjpa.persistence.datacache.entities; -import javax.persistence.Basic; -import javax.persistence.Embedded; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.Table; -import javax.persistence.Version; +import jakarta.persistence.Basic; +import jakarta.persistence.Embedded; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.Table; +import jakarta.persistence.Version; @Entity @Table(name = "oaopde_person") diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/entities/Phone.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/entities/Phone.java index 682479731..19ebbb13d 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/entities/Phone.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/entities/Phone.java @@ -18,14 +18,14 @@ */ package org.apache.openjpa.persistence.datacache.entities; -import javax.persistence.CascadeType; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.OneToOne; -import javax.persistence.Table; -import javax.persistence.Version; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.OneToOne; +import jakarta.persistence.Table; +import jakarta.persistence.Version; @Entity @Table(name = "oaopde_phone") diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/stats/TestStatistics.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/stats/TestStatistics.java index 676d9dea6..d2a7b6635 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/stats/TestStatistics.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/stats/TestStatistics.java @@ -20,8 +20,8 @@ package org.apache.openjpa.persistence.datacache.stats; import java.util.List; -import javax.persistence.EntityManager; -import javax.persistence.Query; +import jakarta.persistence.EntityManager; +import jakarta.persistence.Query; import org.apache.openjpa.datacache.CacheStatistics; import org.apache.openjpa.datacache.DataCache; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/Animal.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/Animal.java index b88b9cfd7..da1500b8c 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/Animal.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/Animal.java @@ -18,12 +18,12 @@ */ package org.apache.openjpa.persistence.delimited.identifiers; -import javax.persistence.Column; -import javax.persistence.DiscriminatorColumn; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.Inheritance; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.DiscriminatorColumn; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.Inheritance; +import jakarta.persistence.Table; @Entity @Inheritance diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/Animal2.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/Animal2.java index 68d2bfe63..c39da2c84 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/Animal2.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/Animal2.java @@ -18,15 +18,15 @@ */ package org.apache.openjpa.persistence.delimited.identifiers; -import javax.persistence.ColumnResult; -import javax.persistence.DiscriminatorColumn; -import javax.persistence.Entity; -import javax.persistence.EntityResult; -import javax.persistence.FieldResult; -import javax.persistence.Id; -import javax.persistence.Inheritance; -import javax.persistence.SqlResultSetMapping; -import javax.persistence.Table; +import jakarta.persistence.ColumnResult; +import jakarta.persistence.DiscriminatorColumn; +import jakarta.persistence.Entity; +import jakarta.persistence.EntityResult; +import jakarta.persistence.FieldResult; +import jakarta.persistence.Id; +import jakarta.persistence.Inheritance; +import jakarta.persistence.SqlResultSetMapping; +import jakarta.persistence.Table; @SqlResultSetMapping(name="AnimalResultSet", entities={@EntityResult(entityClass=Animal2.class, diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/Car.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/Car.java index 6496cda0e..9b4c4c21b 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/Car.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/Car.java @@ -18,12 +18,12 @@ */ package org.apache.openjpa.persistence.delimited.identifiers; -import javax.persistence.Column; -import javax.persistence.DiscriminatorColumn; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.Inheritance; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.DiscriminatorColumn; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.Inheritance; +import jakarta.persistence.Table; @Entity @Inheritance diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/Car2.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/Car2.java index 1c62d5d10..357a4134a 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/Car2.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/Car2.java @@ -18,15 +18,15 @@ */ package org.apache.openjpa.persistence.delimited.identifiers; -import javax.persistence.ColumnResult; -import javax.persistence.DiscriminatorColumn; -import javax.persistence.Entity; -import javax.persistence.EntityResult; -import javax.persistence.FieldResult; -import javax.persistence.Id; -import javax.persistence.Inheritance; -import javax.persistence.SqlResultSetMapping; -import javax.persistence.Table; +import jakarta.persistence.ColumnResult; +import jakarta.persistence.DiscriminatorColumn; +import jakarta.persistence.Entity; +import jakarta.persistence.EntityResult; +import jakarta.persistence.FieldResult; +import jakarta.persistence.Id; +import jakarta.persistence.Inheritance; +import jakarta.persistence.SqlResultSetMapping; +import jakarta.persistence.Table; @SqlResultSetMapping(name="AnnoCarResultSet", entities={@EntityResult(entityClass=Car2.class, diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/Cat.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/Cat.java index 357f08d87..4a0f4bde8 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/Cat.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/Cat.java @@ -18,8 +18,8 @@ */ package org.apache.openjpa.persistence.delimited.identifiers; -import javax.persistence.DiscriminatorValue; -import javax.persistence.Entity; +import jakarta.persistence.DiscriminatorValue; +import jakarta.persistence.Entity; @Entity @DiscriminatorValue("Cat") diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/Cat2.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/Cat2.java index b2c55d906..a3a686380 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/Cat2.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/Cat2.java @@ -18,8 +18,8 @@ */ package org.apache.openjpa.persistence.delimited.identifiers; -import javax.persistence.DiscriminatorValue; -import javax.persistence.Entity; +import jakarta.persistence.DiscriminatorValue; +import jakarta.persistence.Entity; @Entity @DiscriminatorValue("Cat") diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/Chevrolet.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/Chevrolet.java index d3c88ab39..afa231f6c 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/Chevrolet.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/Chevrolet.java @@ -18,8 +18,8 @@ */ package org.apache.openjpa.persistence.delimited.identifiers; -import javax.persistence.DiscriminatorValue; -import javax.persistence.Entity; +import jakarta.persistence.DiscriminatorValue; +import jakarta.persistence.Entity; @Entity @DiscriminatorValue("Chevrolet") diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/Chevrolet2.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/Chevrolet2.java index 53c9e6de0..6ca1590b1 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/Chevrolet2.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/Chevrolet2.java @@ -18,8 +18,8 @@ */ package org.apache.openjpa.persistence.delimited.identifiers; -import javax.persistence.DiscriminatorValue; -import javax.persistence.Entity; +import jakarta.persistence.DiscriminatorValue; +import jakarta.persistence.Entity; @Entity @DiscriminatorValue("Chevrolet") diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/Dog.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/Dog.java index ce459b920..bcf1c13b7 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/Dog.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/Dog.java @@ -18,8 +18,8 @@ */ package org.apache.openjpa.persistence.delimited.identifiers; -import javax.persistence.DiscriminatorValue; -import javax.persistence.Entity; +import jakarta.persistence.DiscriminatorValue; +import jakarta.persistence.Entity; @Entity @DiscriminatorValue("Dog") diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/Dog2.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/Dog2.java index c67476994..a9a41b013 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/Dog2.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/Dog2.java @@ -18,8 +18,8 @@ */ package org.apache.openjpa.persistence.delimited.identifiers; -import javax.persistence.DiscriminatorValue; -import javax.persistence.Entity; +import jakarta.persistence.DiscriminatorValue; +import jakarta.persistence.Entity; @Entity @DiscriminatorValue("Dog") diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityA.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityA.java index 5c15eb2b5..06b34ba1d 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityA.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityA.java @@ -23,19 +23,19 @@ import java.util.HashSet; import java.util.Map; import java.util.Set; -import javax.persistence.CollectionTable; -import javax.persistence.Column; -import javax.persistence.ElementCollection; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.MapKeyColumn; -import javax.persistence.OrderColumn; -import javax.persistence.SecondaryTable; -import javax.persistence.Table; -import javax.persistence.TableGenerator; -import javax.persistence.UniqueConstraint; +import jakarta.persistence.CollectionTable; +import jakarta.persistence.Column; +import jakarta.persistence.ElementCollection; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.MapKeyColumn; +import jakarta.persistence.OrderColumn; +import jakarta.persistence.SecondaryTable; +import jakarta.persistence.Table; +import jakarta.persistence.TableGenerator; +import jakarta.persistence.UniqueConstraint; @Entity @Table(name="primary entityA", schema="delim id2") diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityB.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityB.java index 379a124ff..080972291 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityB.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityB.java @@ -18,13 +18,13 @@ */ package org.apache.openjpa.persistence.delimited.identifiers; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.SequenceGenerator; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.SequenceGenerator; +import jakarta.persistence.Table; @Entity @Table(name="primary entityB", schema="delim id2") diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityC.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityC.java index e97c84899..7dde8ff47 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityC.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityC.java @@ -23,17 +23,17 @@ import java.util.HashMap; import java.util.HashSet; import java.util.Map; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.JoinTable; -import javax.persistence.ManyToMany; -import javax.persistence.MapKeyJoinColumn; -import javax.persistence.OneToOne; -import javax.persistence.PrimaryKeyJoinColumn; -import javax.persistence.SecondaryTable; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.MapKeyJoinColumn; +import jakarta.persistence.OneToOne; +import jakarta.persistence.PrimaryKeyJoinColumn; +import jakarta.persistence.SecondaryTable; +import jakarta.persistence.Table; @Entity @Table(name="\"entity c\"", schema="\"delim id\"") diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityD.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityD.java index 3d5871ed5..7ffd3bde9 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityD.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityD.java @@ -21,10 +21,10 @@ package org.apache.openjpa.persistence.delimited.identifiers; import java.util.Collection; import java.util.HashSet; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.ManyToMany; -import javax.persistence.Table; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.Table; @Entity @Table(name="\"entity d\"", schema="\"delim id\"") diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityD2.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityD2.java index e668f58bf..2265445f2 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityD2.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityD2.java @@ -18,12 +18,12 @@ */ package org.apache.openjpa.persistence.delimited.identifiers; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.OneToOne; -import javax.persistence.PrimaryKeyJoinColumn; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.OneToOne; +import jakarta.persistence.PrimaryKeyJoinColumn; +import jakarta.persistence.Table; @Entity @Table(name="\"entity d2\"", schema="\"delim id\"") diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityD3.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityD3.java index 883e4d13d..8fa51c6a5 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityD3.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityD3.java @@ -18,10 +18,10 @@ */ package org.apache.openjpa.persistence.delimited.identifiers; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.Table; @Entity @Table(name="\"entity d3\"", schema="\"delim id\"") diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityD4.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityD4.java index acf25e223..8ad27b927 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityD4.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityD4.java @@ -18,10 +18,10 @@ */ package org.apache.openjpa.persistence.delimited.identifiers; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.Table; @Entity @Table(name="\"entity d4\"", schema="\"delim id\"") diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityE.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityE.java index 14d97e533..ff532077e 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityE.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityE.java @@ -18,13 +18,13 @@ */ package org.apache.openjpa.persistence.delimited.identifiers; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.SequenceGenerator; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.SequenceGenerator; +import jakarta.persistence.Table; @Entity @Table(name="\"primary entityE\"", schema="\"delim id\"") diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityF.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityF.java index 929e4a276..f13dc056b 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityF.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityF.java @@ -23,18 +23,18 @@ import java.util.HashSet; import java.util.Map; import java.util.Set; -import javax.persistence.CollectionTable; -import javax.persistence.Column; -import javax.persistence.ElementCollection; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.MapKeyColumn; -import javax.persistence.SecondaryTable; -import javax.persistence.Table; -import javax.persistence.TableGenerator; -import javax.persistence.UniqueConstraint; +import jakarta.persistence.CollectionTable; +import jakarta.persistence.Column; +import jakarta.persistence.ElementCollection; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.MapKeyColumn; +import jakarta.persistence.SecondaryTable; +import jakarta.persistence.Table; +import jakarta.persistence.TableGenerator; +import jakarta.persistence.UniqueConstraint; @Entity @Table(name="\"primary entityF\"", schema="\"delim id\"", diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityG.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityG.java index 2b89f4366..c5fcf0966 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityG.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityG.java @@ -18,9 +18,9 @@ */ package org.apache.openjpa.persistence.delimited.identifiers; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.Table; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.Table; @Entity @Table(name="\"entity g\"", schema="\"delim id\"") diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityH.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityH.java index 07abf4108..6d33d024b 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityH.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityH.java @@ -23,17 +23,17 @@ import java.util.HashMap; import java.util.HashSet; import java.util.Map; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.JoinTable; -import javax.persistence.ManyToMany; -import javax.persistence.MapKeyJoinColumn; -import javax.persistence.OneToOne; -import javax.persistence.PrimaryKeyJoinColumn; -import javax.persistence.SecondaryTable; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.MapKeyJoinColumn; +import jakarta.persistence.OneToOne; +import jakarta.persistence.PrimaryKeyJoinColumn; +import jakarta.persistence.SecondaryTable; +import jakarta.persistence.Table; @Entity @Table(name="entity ha", schema="delim id2") diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityI.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityI.java index 266f6074b..79fee2d90 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityI.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityI.java @@ -21,10 +21,10 @@ package org.apache.openjpa.persistence.delimited.identifiers; import java.util.Collection; import java.util.HashSet; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.ManyToMany; -import javax.persistence.Table; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.Table; @Entity @Table(name="entity i", schema="delim id2") diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityI2.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityI2.java index 0b74ece87..178392956 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityI2.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityI2.java @@ -18,12 +18,12 @@ */ package org.apache.openjpa.persistence.delimited.identifiers; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.OneToOne; -import javax.persistence.PrimaryKeyJoinColumn; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.OneToOne; +import jakarta.persistence.PrimaryKeyJoinColumn; +import jakarta.persistence.Table; @Entity @Table(name="entity i2", schema="delim id2") diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityI3.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityI3.java index 9f56e8245..20337a6ec 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityI3.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityI3.java @@ -18,10 +18,10 @@ */ package org.apache.openjpa.persistence.delimited.identifiers; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.Table; @Entity @Table(name="entity i3", schema="delim id2") diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityI4.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityI4.java index b89deab42..5579bb1bf 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityI4.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/EntityI4.java @@ -18,10 +18,10 @@ */ package org.apache.openjpa.persistence.delimited.identifiers; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.Table; @Entity @Table(name="entity i4", schema="delim id2") diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/Pontiac.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/Pontiac.java index 5bdf792e6..a2e2685c8 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/Pontiac.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/Pontiac.java @@ -18,8 +18,8 @@ */ package org.apache.openjpa.persistence.delimited.identifiers; -import javax.persistence.DiscriminatorValue; -import javax.persistence.Entity; +import jakarta.persistence.DiscriminatorValue; +import jakarta.persistence.Entity; @Entity @DiscriminatorValue("Pontiac") diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/Pontiac2.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/Pontiac2.java index 34672945e..9bc151224 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/Pontiac2.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/Pontiac2.java @@ -18,8 +18,8 @@ */ package org.apache.openjpa.persistence.delimited.identifiers; -import javax.persistence.DiscriminatorValue; -import javax.persistence.Entity; +import jakarta.persistence.DiscriminatorValue; +import jakarta.persistence.Entity; @Entity @DiscriminatorValue("Pontiac") diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/TestDelimIdResultSetAnnotations.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/TestDelimIdResultSetAnnotations.java index 4a802682f..d4769a022 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/TestDelimIdResultSetAnnotations.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/TestDelimIdResultSetAnnotations.java @@ -20,7 +20,7 @@ package org.apache.openjpa.persistence.delimited.identifiers; import java.util.List; -import javax.persistence.Query; +import jakarta.persistence.Query; import org.apache.openjpa.persistence.OpenJPAEntityManager; import org.apache.openjpa.persistence.OpenJPAEntityManagerFactorySPI; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/TestDelimInheritance.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/TestDelimInheritance.java index 5817dfc9f..ef92ff85d 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/TestDelimInheritance.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/TestDelimInheritance.java @@ -2,7 +2,7 @@ package org.apache.openjpa.persistence.delimited.identifiers; import java.util.List; -import javax.persistence.Query; +import jakarta.persistence.Query; import org.apache.openjpa.persistence.OpenJPAEntityManager; import org.apache.openjpa.persistence.OpenJPAEntityManagerFactorySPI; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/TestDelimitedJoinAnnotation.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/TestDelimitedJoinAnnotation.java index 43c4a14ad..4ad1c3550 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/TestDelimitedJoinAnnotation.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/TestDelimitedJoinAnnotation.java @@ -20,7 +20,7 @@ package org.apache.openjpa.persistence.delimited.identifiers; import java.util.List; -import javax.persistence.Query; +import jakarta.persistence.Query; import org.apache.openjpa.persistence.OpenJPAEntityManager; import org.apache.openjpa.persistence.OpenJPAEntityManagerFactorySPI; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/TestManualDelimId.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/TestManualDelimId.java index 869bd33f1..13ac14cca 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/TestManualDelimId.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/TestManualDelimId.java @@ -20,7 +20,7 @@ package org.apache.openjpa.persistence.delimited.identifiers; import java.util.List; -import javax.persistence.Query; +import jakarta.persistence.Query; import org.apache.openjpa.jdbc.sql.DB2Dictionary; import org.apache.openjpa.jdbc.sql.DerbyDictionary; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/TestManualDelimIdResultSetAnnotations.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/TestManualDelimIdResultSetAnnotations.java index a0f47de3e..aa8937bc4 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/TestManualDelimIdResultSetAnnotations.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/TestManualDelimIdResultSetAnnotations.java @@ -20,7 +20,7 @@ package org.apache.openjpa.persistence.delimited.identifiers; import java.util.List; -import javax.persistence.Query; +import jakarta.persistence.Query; import org.apache.openjpa.jdbc.sql.DB2Dictionary; import org.apache.openjpa.jdbc.sql.DerbyDictionary; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/TestManualDelimInheritance.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/TestManualDelimInheritance.java index 62ec832d2..8ca154b83 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/TestManualDelimInheritance.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/TestManualDelimInheritance.java @@ -2,7 +2,7 @@ package org.apache.openjpa.persistence.delimited.identifiers; import java.util.List; -import javax.persistence.Query; +import jakarta.persistence.Query; import org.apache.openjpa.jdbc.sql.DB2Dictionary; import org.apache.openjpa.jdbc.sql.DerbyDictionary; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/TestManualDelimitedJoinAnnotations.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/TestManualDelimitedJoinAnnotations.java index 927722fa8..27fc30f52 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/TestManualDelimitedJoinAnnotations.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/TestManualDelimitedJoinAnnotations.java @@ -20,7 +20,7 @@ package org.apache.openjpa.persistence.delimited.identifiers; import java.util.List; -import javax.persistence.Query; +import jakarta.persistence.Query; import org.apache.openjpa.jdbc.conf.JDBCConfiguration; import org.apache.openjpa.jdbc.sql.DB2Dictionary; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/EntityC.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/EntityC.java index b6b374701..5b6406440 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/EntityC.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/EntityC.java @@ -23,17 +23,17 @@ import java.util.HashMap; import java.util.HashSet; import java.util.Map; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.JoinTable; -import javax.persistence.ManyToMany; -import javax.persistence.MapKeyJoinColumn; -import javax.persistence.OneToOne; -import javax.persistence.PrimaryKeyJoinColumn; -import javax.persistence.SecondaryTable; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.MapKeyJoinColumn; +import jakarta.persistence.OneToOne; +import jakarta.persistence.PrimaryKeyJoinColumn; +import jakarta.persistence.SecondaryTable; +import jakarta.persistence.Table; @Entity @Table(name="\"nsentity c\"") diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/EntityD.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/EntityD.java index c5b22fa23..e2b30534f 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/EntityD.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/EntityD.java @@ -21,10 +21,10 @@ package org.apache.openjpa.persistence.delimited.identifiers.noschema; import java.util.Collection; import java.util.HashSet; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.ManyToMany; -import javax.persistence.Table; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.Table; @Entity @Table(name="\"nsentity d\"") diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/EntityD2.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/EntityD2.java index f473853ed..be9654709 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/EntityD2.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/EntityD2.java @@ -18,12 +18,12 @@ */ package org.apache.openjpa.persistence.delimited.identifiers.noschema; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.OneToOne; -import javax.persistence.PrimaryKeyJoinColumn; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.OneToOne; +import jakarta.persistence.PrimaryKeyJoinColumn; +import jakarta.persistence.Table; @Entity @Table(name="\"nsentity d2\"") diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/EntityD3.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/EntityD3.java index 7c4c7be0c..52ba03c34 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/EntityD3.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/EntityD3.java @@ -18,10 +18,10 @@ */ package org.apache.openjpa.persistence.delimited.identifiers.noschema; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.Table; @Entity @Table(name="\"nsentity d3\"") diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/EntityD4.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/EntityD4.java index c99af931f..18bb0149e 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/EntityD4.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/EntityD4.java @@ -18,10 +18,10 @@ */ package org.apache.openjpa.persistence.delimited.identifiers.noschema; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.Table; @Entity @Table(name="\"nsentity d4\"") diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/EntityE.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/EntityE.java index a45b93708..1390a2503 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/EntityE.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/EntityE.java @@ -18,13 +18,13 @@ */ package org.apache.openjpa.persistence.delimited.identifiers.noschema; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.SequenceGenerator; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.SequenceGenerator; +import jakarta.persistence.Table; @Entity @Table(name="\"nsprimary entityE\"") diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/EntityF.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/EntityF.java index ad90d7bc4..f8b3bdcbc 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/EntityF.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/EntityF.java @@ -23,18 +23,18 @@ import java.util.HashSet; import java.util.Map; import java.util.Set; -import javax.persistence.CollectionTable; -import javax.persistence.Column; -import javax.persistence.ElementCollection; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.MapKeyColumn; -import javax.persistence.SecondaryTable; -import javax.persistence.Table; -import javax.persistence.TableGenerator; -import javax.persistence.UniqueConstraint; +import jakarta.persistence.CollectionTable; +import jakarta.persistence.Column; +import jakarta.persistence.ElementCollection; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.MapKeyColumn; +import jakarta.persistence.SecondaryTable; +import jakarta.persistence.Table; +import jakarta.persistence.TableGenerator; +import jakarta.persistence.UniqueConstraint; @Entity @Table(name="\"nsprimary entityF\"", diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/EntityG.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/EntityG.java index 452ece9c4..c69e309c0 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/EntityG.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/EntityG.java @@ -18,9 +18,9 @@ */ package org.apache.openjpa.persistence.delimited.identifiers.noschema; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.Table; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.Table; @Entity @Table(name="\"nsentity d4\"") diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/TestNoSchemaManualDelimId.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/TestNoSchemaManualDelimId.java index 93e4afd76..27b2bf1ed 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/TestNoSchemaManualDelimId.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/TestNoSchemaManualDelimId.java @@ -20,7 +20,7 @@ package org.apache.openjpa.persistence.delimited.identifiers.noschema; import java.util.List; -import javax.persistence.Query; +import jakarta.persistence.Query; import org.apache.openjpa.persistence.OpenJPAEntityManager; import org.apache.openjpa.persistence.test.SQLListenerTestCase; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/TestNoSchemaManualDelimitedJoinAnnotations.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/TestNoSchemaManualDelimitedJoinAnnotations.java index 5a19cfbc1..f5aa03312 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/TestNoSchemaManualDelimitedJoinAnnotations.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/noschema/TestNoSchemaManualDelimitedJoinAnnotations.java @@ -20,7 +20,7 @@ package org.apache.openjpa.persistence.delimited.identifiers.noschema; import java.util.List; -import javax.persistence.Query; +import jakarta.persistence.Query; import org.apache.openjpa.jdbc.conf.JDBCConfiguration; import org.apache.openjpa.jdbc.sql.DBDictionary; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/xml/TestXmlDelimIdResultSets.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/xml/TestXmlDelimIdResultSets.java index 385e75880..040e9d114 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/xml/TestXmlDelimIdResultSets.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/xml/TestXmlDelimIdResultSets.java @@ -20,7 +20,7 @@ package org.apache.openjpa.persistence.delimited.identifiers.xml; import java.util.List; -import javax.persistence.Query; +import jakarta.persistence.Query; import org.apache.openjpa.persistence.OpenJPAEntityManager; import org.apache.openjpa.persistence.test.SQLListenerTestCase; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/xml/TestXmlDelimInheritance.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/xml/TestXmlDelimInheritance.java index 014920571..0ca89d8aa 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/xml/TestXmlDelimInheritance.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/xml/TestXmlDelimInheritance.java @@ -20,7 +20,7 @@ package org.apache.openjpa.persistence.delimited.identifiers.xml; import java.util.List; -import javax.persistence.Query; +import jakarta.persistence.Query; import org.apache.openjpa.persistence.OpenJPAEntityManager; import org.apache.openjpa.persistence.test.SQLListenerTestCase; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/xml/TestXmlDelimitedJoinAnnotation.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/xml/TestXmlDelimitedJoinAnnotation.java index 154ab4753..76a5c5e49 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/xml/TestXmlDelimitedJoinAnnotation.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/delimited/identifiers/xml/TestXmlDelimitedJoinAnnotation.java @@ -20,7 +20,7 @@ package org.apache.openjpa.persistence.delimited.identifiers.xml; import java.util.List; -import javax.persistence.Query; +import jakarta.persistence.Query; import org.apache.openjpa.persistence.OpenJPAEntityManager; import org.apache.openjpa.persistence.test.SQLListenerTestCase; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/derivedid/EBigDecimalID.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/derivedid/EBigDecimalID.java index 2342b595b..d0d30e9c5 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/derivedid/EBigDecimalID.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/derivedid/EBigDecimalID.java @@ -20,9 +20,9 @@ package org.apache.openjpa.persistence.derivedid; import java.math.BigDecimal; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Id; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; @Entity public class EBigDecimalID { @Id diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/derivedid/EBigIntegerID.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/derivedid/EBigIntegerID.java index 96b84282d..865aa1027 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/derivedid/EBigIntegerID.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/derivedid/EBigIntegerID.java @@ -20,8 +20,8 @@ package org.apache.openjpa.persistence.derivedid; import java.math.BigInteger; -import javax.persistence.Entity; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; @Entity public class EBigIntegerID { @Id diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/derivedid/EDBigDecimalID.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/derivedid/EDBigDecimalID.java index b1c8938b8..cba55abe8 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/derivedid/EDBigDecimalID.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/derivedid/EDBigDecimalID.java @@ -18,9 +18,9 @@ */ package org.apache.openjpa.persistence.derivedid; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.OneToOne; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.OneToOne; @Entity public class EDBigDecimalID { diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/derivedid/EDBigIntegerID.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/derivedid/EDBigIntegerID.java index 2878a5c45..f12c617a2 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/derivedid/EDBigIntegerID.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/derivedid/EDBigIntegerID.java @@ -18,9 +18,9 @@ */ package org.apache.openjpa.persistence.derivedid; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.OneToOne; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.OneToOne; @Entity public class EDBigIntegerID { diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/derivedid/EDDateID.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/derivedid/EDDateID.java index d146d9d8c..5ccdaef4e 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/derivedid/EDDateID.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/derivedid/EDDateID.java @@ -18,9 +18,9 @@ */ package org.apache.openjpa.persistence.derivedid; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.OneToOne; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.OneToOne; @Entity public class EDDateID { diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/derivedid/EDSQLDateID.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/derivedid/EDSQLDateID.java index fdc31bc9e..2d0fb09b1 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/derivedid/EDSQLDateID.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/derivedid/EDSQLDateID.java @@ -18,9 +18,9 @@ */ package org.apache.openjpa.persistence.derivedid; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.OneToOne; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.OneToOne; @Entity public class EDSQLDateID { diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/derivedid/EDateID.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/derivedid/EDateID.java index 07ef0af2d..8b2ebfa2e 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/derivedid/EDateID.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/derivedid/EDateID.java @@ -20,8 +20,8 @@ package org.apache.openjpa.persistence.derivedid; import java.util.Date; -import javax.persistence.Entity; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; @Entity public class EDateID { diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/derivedid/ESQLDateID.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/derivedid/ESQLDateID.java index 88e51e272..155fe9683 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/derivedid/ESQLDateID.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/derivedid/ESQLDateID.java @@ -20,8 +20,8 @@ package org.apache.openjpa.persistence.derivedid; import java.sql.Date; -import javax.persistence.Entity; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; @Entity public class ESQLDateID { @Id diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/derivedid/TestDerivedIdentity.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/derivedid/TestDerivedIdentity.java index 223de1332..7c75e11a2 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/derivedid/TestDerivedIdentity.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/derivedid/TestDerivedIdentity.java @@ -23,8 +23,8 @@ import java.math.BigInteger; import java.util.Date; import java.util.List; -import javax.persistence.EntityManager; -import javax.persistence.Query; +import jakarta.persistence.EntityManager; +import jakarta.persistence.Query; import org.apache.openjpa.persistence.test.SQLListenerTestCase; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/Entity1.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/Entity1.java index 132269c0e..4c2ad82f4 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/Entity1.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/Entity1.java @@ -18,11 +18,11 @@ */ package org.apache.openjpa.persistence.detach; -import javax.persistence.CascadeType; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.OneToOne; -import javax.persistence.Table; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.OneToOne; +import jakarta.persistence.Table; @Entity @Table(name="detachentity_1") diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/Entity10.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/Entity10.java index 3b11ef95f..4e52ef865 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/Entity10.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/Entity10.java @@ -22,11 +22,11 @@ import java.util.ArrayList; import java.util.Collection; import java.util.HashSet; -import javax.persistence.CascadeType; -import javax.persistence.ElementCollection; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.OneToMany; +import jakarta.persistence.CascadeType; +import jakarta.persistence.ElementCollection; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.OneToMany; @Entity public class Entity10 { diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/Entity11.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/Entity11.java index d1c65dbc6..0bf14b4b7 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/Entity11.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/Entity11.java @@ -18,8 +18,8 @@ */ package org.apache.openjpa.persistence.detach; -import javax.persistence.Entity; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; @Entity public class Entity11 { diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/Entity12.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/Entity12.java index 080e0eb32..1d889249c 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/Entity12.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/Entity12.java @@ -18,8 +18,8 @@ */ package org.apache.openjpa.persistence.detach; -import javax.persistence.Entity; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; @Entity diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/Entity13.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/Entity13.java index 92933067c..106cedc09 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/Entity13.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/Entity13.java @@ -20,11 +20,11 @@ package org.apache.openjpa.persistence.detach; import java.util.Map; -import javax.persistence.CascadeType; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.MapKey; -import javax.persistence.OneToMany; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.MapKey; +import jakarta.persistence.OneToMany; @Entity public class Entity13 { diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/Entity14.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/Entity14.java index 196e08113..3b23a5384 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/Entity14.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/Entity14.java @@ -18,8 +18,8 @@ */ package org.apache.openjpa.persistence.detach; -import javax.persistence.Entity; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; @Entity public class Entity14 { diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/Entity20.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/Entity20.java index 03cc29bf1..b5a22fb3b 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/Entity20.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/Entity20.java @@ -23,12 +23,12 @@ import java.sql.Date; import java.sql.Time; import java.sql.Timestamp; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.Table; -import javax.persistence.Temporal; -import javax.persistence.TemporalType; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.Table; +import jakarta.persistence.Temporal; +import jakarta.persistence.TemporalType; @Entity @Table(name="Entity20_detach") diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/Entity3.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/Entity3.java index b7e2ed014..a303610e2 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/Entity3.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/Entity3.java @@ -18,10 +18,10 @@ */ package org.apache.openjpa.persistence.detach; -import javax.persistence.CascadeType; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.OneToOne; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.OneToOne; @Entity public class Entity3 { diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/Entity4.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/Entity4.java index 244f21fbb..450a45cc9 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/Entity4.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/Entity4.java @@ -18,10 +18,10 @@ */ package org.apache.openjpa.persistence.detach; -import javax.persistence.CascadeType; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.OneToOne; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.OneToOne; @Entity public class Entity4 { diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/Entity5.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/Entity5.java index 333b51741..c6e42d7eb 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/Entity5.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/Entity5.java @@ -18,9 +18,9 @@ */ package org.apache.openjpa.persistence.detach; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.OneToOne; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.OneToOne; @Entity public class Entity5 { diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/Entity6.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/Entity6.java index fd7053661..53afa78ea 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/Entity6.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/Entity6.java @@ -18,10 +18,10 @@ */ package org.apache.openjpa.persistence.detach; -import javax.persistence.CascadeType; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.OneToOne; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.OneToOne; @Entity public class Entity6 { diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/Entity7.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/Entity7.java index 52d03cb3a..3d99d25c7 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/Entity7.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/Entity7.java @@ -18,8 +18,8 @@ */ package org.apache.openjpa.persistence.detach; -import javax.persistence.Entity; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; @Entity public class Entity7 { diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/Entity8.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/Entity8.java index 6f57c5e62..43744f071 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/Entity8.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/Entity8.java @@ -18,10 +18,10 @@ */ package org.apache.openjpa.persistence.detach; -import javax.persistence.CascadeType; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.OneToOne; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.OneToOne; @Entity public class Entity8 { diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/Entity9.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/Entity9.java index 790e1b317..15b4267ce 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/Entity9.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/Entity9.java @@ -18,8 +18,8 @@ */ package org.apache.openjpa.persistence.detach; -import javax.persistence.Entity; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; @Entity public class Entity9 { diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/EntityA.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/EntityA.java index da2bd06ca..d8cc1016e 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/EntityA.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/EntityA.java @@ -18,13 +18,13 @@ */ package org.apache.openjpa.persistence.detach; -import javax.persistence.Basic; -import javax.persistence.CascadeType; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.Id; -import javax.persistence.OneToOne; -import javax.persistence.Table; +import jakarta.persistence.Basic; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.Id; +import jakarta.persistence.OneToOne; +import jakarta.persistence.Table; import org.apache.openjpa.persistence.FetchAttribute; import org.apache.openjpa.persistence.FetchGroup; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/EntityB.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/EntityB.java index 127301796..8cdd9bbe2 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/EntityB.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/EntityB.java @@ -18,9 +18,9 @@ */ package org.apache.openjpa.persistence.detach; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.Table; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.Table; @Entity @Table(name="EntityB_detach") diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/EntityC.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/EntityC.java index 40708d953..923740d11 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/EntityC.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/EntityC.java @@ -18,9 +18,9 @@ */ package org.apache.openjpa.persistence.detach; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.Table; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.Table; @Entity @Table(name="EntityC_detach") diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/EntityD.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/EntityD.java index 9cc724d72..622caa459 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/EntityD.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/EntityD.java @@ -18,9 +18,9 @@ */ package org.apache.openjpa.persistence.detach; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.Table; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.Table; @Entity @Table(name="EntityD_detach") diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/EntityE.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/EntityE.java index 3e4dab60f..594518d91 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/EntityE.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/EntityE.java @@ -18,9 +18,9 @@ */ package org.apache.openjpa.persistence.detach; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.Table; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.Table; @Entity @Table(name="EntityE_detach") diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/IntVersionEntity.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/IntVersionEntity.java index 9996c32ab..f9f6c736c 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/IntVersionEntity.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/IntVersionEntity.java @@ -20,12 +20,12 @@ package org.apache.openjpa.persistence.detach; import java.io.Serializable; -import javax.persistence.CascadeType; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.Id; -import javax.persistence.OneToOne; -import javax.persistence.Version; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.Id; +import jakarta.persistence.OneToOne; +import jakarta.persistence.Version; @Entity public class IntVersionEntity implements Serializable { diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/IntegerVersionEntity.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/IntegerVersionEntity.java index 12853b810..2577a4ad6 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/IntegerVersionEntity.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/IntegerVersionEntity.java @@ -18,9 +18,9 @@ */ package org.apache.openjpa.persistence.detach; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.Version; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.Version; @Entity public class IntegerVersionEntity { diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/NoVersionEntity.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/NoVersionEntity.java index 6304c98b1..0af9dd4e4 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/NoVersionEntity.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/NoVersionEntity.java @@ -18,8 +18,8 @@ */ package org.apache.openjpa.persistence.detach; -import javax.persistence.Entity; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; @Entity public class NoVersionEntity { diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/TimestampVersionEntity.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/TimestampVersionEntity.java index 967b35c18..6ccffa723 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/TimestampVersionEntity.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/TimestampVersionEntity.java @@ -20,9 +20,9 @@ package org.apache.openjpa.persistence.detach; import java.sql.Timestamp; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.Version; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.Version; @Entity public class TimestampVersionEntity { diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/serializable/SerializableDetachedStateManager.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/serializable/SerializableDetachedStateManager.java index 3bf618117..7eea351e4 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/serializable/SerializableDetachedStateManager.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/serializable/SerializableDetachedStateManager.java @@ -21,13 +21,13 @@ package org.apache.openjpa.persistence.detach.serializable; import java.io.Serializable; import java.sql.Date; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.Temporal; -import javax.persistence.TemporalType; -import javax.persistence.Version; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.Temporal; +import jakarta.persistence.TemporalType; +import jakarta.persistence.Version; @Entity public class SerializableDetachedStateManager implements Serializable { diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/xml/Driver.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/xml/Driver.java index fa99ed7e9..0093895cc 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/xml/Driver.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/xml/Driver.java @@ -19,8 +19,8 @@ package org.apache.openjpa.persistence.detach.xml; -import javax.persistence.Entity; -import javax.persistence.Table; +import jakarta.persistence.Entity; +import jakarta.persistence.Table; @Entity @Table(name="AUTO_DRIVER") diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/xml/Owner.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/xml/Owner.java index f9eebf447..6fef512cc 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/xml/Owner.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/xml/Owner.java @@ -20,8 +20,8 @@ package org.apache.openjpa.persistence.detach.xml; import java.util.List; -import javax.persistence.Entity; -import javax.persistence.Table; +import jakarta.persistence.Entity; +import jakarta.persistence.Table; @Entity @Table(name="AUTO_OWNER") diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/xml/Passenger.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/xml/Passenger.java index 10b736b6e..48efcbe36 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/xml/Passenger.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/xml/Passenger.java @@ -20,8 +20,8 @@ package org.apache.openjpa.persistence.detach.xml; import java.util.Collection; -import javax.persistence.Entity; -import javax.persistence.Table; +import jakarta.persistence.Entity; +import jakarta.persistence.Table; @Entity @Table(name="AUTO_PASSENGER") diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/xml/TestDetachXML.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/xml/TestDetachXML.java index 233c356d2..4554410a7 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/xml/TestDetachXML.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detach/xml/TestDetachXML.java @@ -21,8 +21,8 @@ package org.apache.openjpa.persistence.detach.xml; import java.util.ArrayList; import java.util.List; -import javax.persistence.EntityManager; -import javax.persistence.EntityManagerFactory; +import jakarta.persistence.EntityManager; +import jakarta.persistence.EntityManagerFactory; import org.apache.openjpa.persistence.OpenJPAEntityManagerFactorySPI; import org.apache.openjpa.persistence.OpenJPAPersistence; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/DetachmentOneManyChild.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/DetachmentOneManyChild.java index 7e5273f90..c6e545a97 100755 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/DetachmentOneManyChild.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/DetachmentOneManyChild.java @@ -18,12 +18,12 @@ */ package org.apache.openjpa.persistence.detachment; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; -import javax.persistence.Version; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.Version; import org.apache.openjpa.persistence.jdbc.ForeignKey; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/DetachmentOneManyParent.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/DetachmentOneManyParent.java index 453ce7ca0..ce3cc6d68 100755 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/DetachmentOneManyParent.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/DetachmentOneManyParent.java @@ -21,14 +21,14 @@ package org.apache.openjpa.persistence.detachment; import java.util.ArrayList; import java.util.List; -import javax.persistence.CascadeType; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.OneToMany; -import javax.persistence.OrderBy; -import javax.persistence.Version; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.OneToMany; +import jakarta.persistence.OrderBy; +import jakarta.persistence.Version; @Entity public class DetachmentOneManyParent { diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/Record.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/Record.java index 910e2b5a9..47356bcdc 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/Record.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/Record.java @@ -18,9 +18,9 @@ */ package org.apache.openjpa.persistence.detachment; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; import org.apache.openjpa.persistence.Persistent; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/TestAttachConstructedCopy.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/TestAttachConstructedCopy.java index f867fcac1..fbaec09f0 100755 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/TestAttachConstructedCopy.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/TestAttachConstructedCopy.java @@ -18,7 +18,7 @@ */ package org.apache.openjpa.persistence.detachment; -import javax.persistence.EntityManager; +import jakarta.persistence.EntityManager; import org.apache.openjpa.persistence.test.SingleEMFTestCase; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/TestAttachWithNoChanges.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/TestAttachWithNoChanges.java index 1602d0c6c..af7b5ba99 100755 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/TestAttachWithNoChanges.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/TestAttachWithNoChanges.java @@ -18,8 +18,8 @@ */ package org.apache.openjpa.persistence.detachment; -import javax.persistence.EntityManager; -import javax.persistence.OptimisticLockException; +import jakarta.persistence.EntityManager; +import jakarta.persistence.OptimisticLockException; import org.apache.openjpa.persistence.test.SingleEMFTestCase; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/TestCascadeMerge.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/TestCascadeMerge.java index 2e9a58f1e..7f6b84c2e 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/TestCascadeMerge.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/TestCascadeMerge.java @@ -21,7 +21,7 @@ package org.apache.openjpa.persistence.detachment; import java.util.ArrayList; import java.util.List; -import javax.persistence.EntityManager; +import jakarta.persistence.EntityManager; import org.apache.openjpa.jdbc.kernel.EntityF; import org.apache.openjpa.jdbc.kernel.EntityG; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/TestDetachLite.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/TestDetachLite.java index 733075f9b..2ff25eac7 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/TestDetachLite.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/TestDetachLite.java @@ -20,8 +20,8 @@ package org.apache.openjpa.persistence.detachment; import java.util.Calendar; -import javax.persistence.EntityManager; -import javax.persistence.EntityManagerFactory; +import jakarta.persistence.EntityManager; +import jakarta.persistence.EntityManagerFactory; import org.apache.openjpa.conf.Compatibility; import org.apache.openjpa.enhance.PersistenceCapable; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/TestDetachedEntityCascadePersist.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/TestDetachedEntityCascadePersist.java index 6f42d4b73..ff006718d 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/TestDetachedEntityCascadePersist.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/TestDetachedEntityCascadePersist.java @@ -18,7 +18,7 @@ */ package org.apache.openjpa.persistence.detachment; -import javax.persistence.EntityManager; +import jakarta.persistence.EntityManager; import org.apache.openjpa.persistence.detachment.model.DMCustomer; import org.apache.openjpa.persistence.detachment.model.DMCustomerInventory; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/TestDetachment.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/TestDetachment.java index 2920d1ffb..46fcfd255 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/TestDetachment.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/TestDetachment.java @@ -18,7 +18,7 @@ */ package org.apache.openjpa.persistence.detachment; -import javax.persistence.EntityManager; +import jakarta.persistence.EntityManager; import org.apache.openjpa.persistence.test.SingleEMFTestCase; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/TestDetachmentOneMany.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/TestDetachmentOneMany.java index 321eb846f..5ff15bf02 100755 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/TestDetachmentOneMany.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/TestDetachmentOneMany.java @@ -18,7 +18,7 @@ */ package org.apache.openjpa.persistence.detachment; -import javax.persistence.EntityManager; +import jakarta.persistence.EntityManager; import org.apache.openjpa.persistence.AutoDetachType; import org.apache.openjpa.persistence.OpenJPAPersistence; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/TestGetReferenceAndImplicitDetachment.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/TestGetReferenceAndImplicitDetachment.java index dc280d20f..e9aa67c18 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/TestGetReferenceAndImplicitDetachment.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/TestGetReferenceAndImplicitDetachment.java @@ -18,8 +18,8 @@ */ package org.apache.openjpa.persistence.detachment; -import javax.persistence.EntityManager; -import javax.persistence.RollbackException; +import jakarta.persistence.EntityManager; +import jakarta.persistence.RollbackException; import org.apache.openjpa.enhance.PersistenceCapable; import org.apache.openjpa.persistence.OpenJPAPersistence; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/TestNoCascadeOneToManyMerge.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/TestNoCascadeOneToManyMerge.java index fa7b59213..b66df2fe1 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/TestNoCascadeOneToManyMerge.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/TestNoCascadeOneToManyMerge.java @@ -18,7 +18,7 @@ */ package org.apache.openjpa.persistence.detachment; -import javax.persistence.EntityManager; +import jakarta.persistence.EntityManager; import org.apache.openjpa.persistence.detachment.model.SimpleA; import org.apache.openjpa.persistence.detachment.model.SimpleB; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/TestNoCascadeOneToOneMerge.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/TestNoCascadeOneToOneMerge.java index 4660f8b36..766d04529 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/TestNoCascadeOneToOneMerge.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/TestNoCascadeOneToOneMerge.java @@ -19,7 +19,7 @@ package org.apache.openjpa.persistence.detachment; -import javax.persistence.EntityManager; +import jakarta.persistence.EntityManager; import org.apache.openjpa.persistence.detachment.model.SimpleA; import org.apache.openjpa.persistence.detachment.model.SimpleB; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/model/DMCustomer.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/model/DMCustomer.java index 33df64ea1..843420000 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/model/DMCustomer.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/model/DMCustomer.java @@ -22,14 +22,14 @@ import java.util.ArrayList; import java.util.Calendar; import java.util.List; -import javax.persistence.CascadeType; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.Id; -import javax.persistence.OneToMany; -import javax.persistence.Temporal; -import javax.persistence.TemporalType; -import javax.persistence.Version; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.Id; +import jakarta.persistence.OneToMany; +import jakarta.persistence.Temporal; +import jakarta.persistence.TemporalType; +import jakarta.persistence.Version; @Entity public class DMCustomer { diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/model/DMCustomerInventory.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/model/DMCustomerInventory.java index 0e16cb33c..fe89b6e9a 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/model/DMCustomerInventory.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/model/DMCustomerInventory.java @@ -18,15 +18,15 @@ */ package org.apache.openjpa.persistence.detachment.model; -import static javax.persistence.CascadeType.MERGE; -import static javax.persistence.CascadeType.PERSIST; -import static javax.persistence.CascadeType.REFRESH; +import static jakarta.persistence.CascadeType.MERGE; +import static jakarta.persistence.CascadeType.PERSIST; +import static jakarta.persistence.CascadeType.REFRESH; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; -import javax.persistence.Version; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.Version; @Entity public class DMCustomerInventory { diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/model/DMItem.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/model/DMItem.java index 081ec31b2..56deae80b 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/model/DMItem.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/model/DMItem.java @@ -18,9 +18,9 @@ */ package org.apache.openjpa.persistence.detachment.model; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.Version; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.Version; @Entity public class DMItem { diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/model/NoDetachedStateEntityFieldAccess.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/model/NoDetachedStateEntityFieldAccess.java index 054504590..adc898d70 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/model/NoDetachedStateEntityFieldAccess.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/model/NoDetachedStateEntityFieldAccess.java @@ -18,14 +18,14 @@ */ package org.apache.openjpa.persistence.detachment.model; -import javax.persistence.Basic; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.ManyToOne; -import javax.persistence.Table; -import javax.persistence.Version; +import jakarta.persistence.Basic; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.Table; +import jakarta.persistence.Version; @Entity @Table(name="FieldAccessNoDetachedState") diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/model/NoDetachedStateEntityPropertyAccess.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/model/NoDetachedStateEntityPropertyAccess.java index 3091d04d4..0061815b6 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/model/NoDetachedStateEntityPropertyAccess.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/model/NoDetachedStateEntityPropertyAccess.java @@ -18,13 +18,13 @@ */ package org.apache.openjpa.persistence.detachment.model; -import javax.persistence.Basic; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.Table; -import javax.persistence.Version; +import jakarta.persistence.Basic; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.Table; +import jakarta.persistence.Version; @Entity @Table(name="PropertyAccessNoDetachedState") diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/model/SimpleA.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/model/SimpleA.java index 48417dc3e..273ddcd3f 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/model/SimpleA.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/model/SimpleA.java @@ -22,13 +22,13 @@ package org.apache.openjpa.persistence.detachment.model; import java.util.LinkedHashSet; import java.util.Set; -import javax.persistence.Basic; -import javax.persistence.CascadeType; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.OneToMany; -import javax.persistence.OneToOne; +import jakarta.persistence.Basic; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.OneToMany; +import jakarta.persistence.OneToOne; @Entity public class SimpleA { diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/model/SimpleB.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/model/SimpleB.java index e8ca4d4b7..014c02919 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/model/SimpleB.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/model/SimpleB.java @@ -22,14 +22,14 @@ package org.apache.openjpa.persistence.detachment.model; import java.util.LinkedHashSet; import java.util.Set; -import javax.persistence.Basic; -import javax.persistence.CascadeType; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; -import javax.persistence.OneToMany; +import jakarta.persistence.Basic; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.OneToMany; @Entity public class SimpleB { diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/model/SimpleC.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/model/SimpleC.java index d2c028d92..4c2f72b12 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/model/SimpleC.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/model/SimpleC.java @@ -18,13 +18,13 @@ */ package org.apache.openjpa.persistence.detachment.model; -import javax.persistence.Basic; -import javax.persistence.CascadeType; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; +import jakarta.persistence.Basic; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.ManyToOne; @Entity public class SimpleC { diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/model/SimpleRef.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/model/SimpleRef.java index 43bac5302..732af3871 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/model/SimpleRef.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/detachment/model/SimpleRef.java @@ -19,10 +19,10 @@ package org.apache.openjpa.persistence.detachment.model; -import javax.persistence.Basic; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; +import jakarta.persistence.Basic; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; @Entity public class SimpleRef { diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/discriminator/CharAbstractEntity.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/discriminator/CharAbstractEntity.java index 9e11d3048..497e1bd5e 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/discriminator/CharAbstractEntity.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/discriminator/CharAbstractEntity.java @@ -18,14 +18,14 @@ */ package org.apache.openjpa.persistence.discriminator; -import javax.persistence.Column; -import javax.persistence.DiscriminatorColumn; -import javax.persistence.DiscriminatorType; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.Inheritance; -import javax.persistence.InheritanceType; +import jakarta.persistence.Column; +import jakarta.persistence.DiscriminatorColumn; +import jakarta.persistence.DiscriminatorType; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.Inheritance; +import jakarta.persistence.InheritanceType; @Entity @Inheritance(strategy=InheritanceType.SINGLE_TABLE) diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/discriminator/CharLeafEntity.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/discriminator/CharLeafEntity.java index 43459fd10..9ccbb6e8c 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/discriminator/CharLeafEntity.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/discriminator/CharLeafEntity.java @@ -18,7 +18,7 @@ */ package org.apache.openjpa.persistence.discriminator; -import javax.persistence.Entity; +import jakarta.persistence.Entity; @Entity(name="chrLeaf") public class CharLeafEntity diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/discriminator/CharRootEntity.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/discriminator/CharRootEntity.java index 3805b1862..ca7896aec 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/discriminator/CharRootEntity.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/discriminator/CharRootEntity.java @@ -18,8 +18,8 @@ */ package org.apache.openjpa.persistence.discriminator; -import javax.persistence.DiscriminatorValue; -import javax.persistence.Entity; +import jakarta.persistence.DiscriminatorValue; +import jakarta.persistence.Entity; @Entity @DiscriminatorValue("R") diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/discriminator/IntegerAbstractEntity.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/discriminator/IntegerAbstractEntity.java index 6dc79a597..674c32fe4 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/discriminator/IntegerAbstractEntity.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/discriminator/IntegerAbstractEntity.java @@ -18,14 +18,14 @@ */ package org.apache.openjpa.persistence.discriminator; -import javax.persistence.Column; -import javax.persistence.DiscriminatorColumn; -import javax.persistence.DiscriminatorType; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.Inheritance; -import javax.persistence.InheritanceType; +import jakarta.persistence.Column; +import jakarta.persistence.DiscriminatorColumn; +import jakarta.persistence.DiscriminatorType; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.Inheritance; +import jakarta.persistence.InheritanceType; @Entity @Inheritance(strategy = InheritanceType.SINGLE_TABLE) diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/discriminator/IntegerLeafEntity.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/discriminator/IntegerLeafEntity.java index 79b8027d5..7b202c0a2 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/discriminator/IntegerLeafEntity.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/discriminator/IntegerLeafEntity.java @@ -18,7 +18,7 @@ */ package org.apache.openjpa.persistence.discriminator; -import javax.persistence.Entity; +import jakarta.persistence.Entity; @Entity(name="intLeaf") public class IntegerLeafEntity diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/discriminator/IntegerRootEntity.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/discriminator/IntegerRootEntity.java index bdaa2397b..cf9458339 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/discriminator/IntegerRootEntity.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/discriminator/IntegerRootEntity.java @@ -18,8 +18,8 @@ */ package org.apache.openjpa.persistence.discriminator; -import javax.persistence.DiscriminatorValue; -import javax.persistence.Entity; +import jakarta.persistence.DiscriminatorValue; +import jakarta.persistence.Entity; @Entity @DiscriminatorValue("10101") diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/discriminator/StringAbstractEntity.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/discriminator/StringAbstractEntity.java index fee9cbf6e..08fa3dfec 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/discriminator/StringAbstractEntity.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/discriminator/StringAbstractEntity.java @@ -18,14 +18,14 @@ */ package org.apache.openjpa.persistence.discriminator; -import javax.persistence.Column; -import javax.persistence.DiscriminatorColumn; -import javax.persistence.DiscriminatorType; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.Inheritance; -import javax.persistence.InheritanceType; +import jakarta.persistence.Column; +import jakarta.persistence.DiscriminatorColumn; +import jakarta.persistence.DiscriminatorType; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.Inheritance; +import jakarta.persistence.InheritanceType; @Entity @Inheritance(strategy = InheritanceType.SINGLE_TABLE) diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/discriminator/StringLeafEntity.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/discriminator/StringLeafEntity.java index 73dc801b7..1ad88bdaa 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/discriminator/StringLeafEntity.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/discriminator/StringLeafEntity.java @@ -18,7 +18,7 @@ */ package org.apache.openjpa.persistence.discriminator; -import javax.persistence.Entity; +import jakarta.persistence.Entity; @Entity(name="strLeaf") public class StringLeafEntity diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/discriminator/StringRootEntity.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/discriminator/StringRootEntity.java index e012b4672..4b4863669 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/discriminator/StringRootEntity.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/discriminator/StringRootEntity.java @@ -18,8 +18,8 @@ */ package org.apache.openjpa.persistence.discriminator; -import javax.persistence.DiscriminatorValue; -import javax.persistence.Entity; +import jakarta.persistence.DiscriminatorValue; +import jakarta.persistence.Entity; @Entity @DiscriminatorValue("StringRoot") diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/discriminator/TestDiscriminatorTypes.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/discriminator/TestDiscriminatorTypes.java index 727c8db26..22382f6cc 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/discriminator/TestDiscriminatorTypes.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/discriminator/TestDiscriminatorTypes.java @@ -20,8 +20,8 @@ package org.apache.openjpa.persistence.discriminator; import java.util.List; -import javax.persistence.EntityManager; -import javax.persistence.Query; +import jakarta.persistence.EntityManager; +import jakarta.persistence.Query; import org.apache.openjpa.jdbc.meta.Discriminator; import org.apache.openjpa.meta.JavaTypes; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/discriminator/fetch/Employee.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/discriminator/fetch/Employee.java index 193ddc0d4..65121dbc2 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/discriminator/fetch/Employee.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/discriminator/fetch/Employee.java @@ -18,11 +18,11 @@ */ package org.apache.openjpa.persistence.discriminator.fetch; -import javax.persistence.DiscriminatorValue; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.ManyToOne; -import javax.persistence.Table; +import jakarta.persistence.DiscriminatorValue; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.Table; @Entity(name="D_F_Employee") @Table(name="D_F_EMPLOYEE") diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/discriminator/fetch/Manager.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/discriminator/fetch/Manager.java index 228016002..558b2b38d 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/discriminator/fetch/Manager.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/discriminator/fetch/Manager.java @@ -20,11 +20,11 @@ package org.apache.openjpa.persistence.discriminator.fetch; import java.util.Collection; -import javax.persistence.DiscriminatorValue; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.OneToMany; -import javax.persistence.Table; +import jakarta.persistence.DiscriminatorValue; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.OneToMany; +import jakarta.persistence.Table; @Entity(name="D_F_Manager") @Table(name="D_F_MANAGER") diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/discriminator/fetch/Person.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/discriminator/fetch/Person.java index c2ec5ccb1..843aa2f98 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/discriminator/fetch/Person.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/discriminator/fetch/Person.java @@ -18,12 +18,12 @@ */ package org.apache.openjpa.persistence.discriminator.fetch; -import javax.persistence.DiscriminatorValue; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.Inheritance; -import javax.persistence.InheritanceType; -import javax.persistence.Table; +import jakarta.persistence.DiscriminatorValue; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.Inheritance; +import jakarta.persistence.InheritanceType; +import jakarta.persistence.Table; @Entity(name="D_F_Person") @Table(name="D_F_PERSON") diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/discriminator/fetch/TestLazyFetch.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/discriminator/fetch/TestLazyFetch.java index 443026881..43b8d7922 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/discriminator/fetch/TestLazyFetch.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/discriminator/fetch/TestLazyFetch.java @@ -21,9 +21,9 @@ package org.apache.openjpa.persistence.discriminator.fetch; import java.util.HashSet; import java.util.List; -import javax.persistence.EntityManager; -import javax.persistence.EntityManagerFactory; -import javax.persistence.EntityTransaction; +import jakarta.persistence.EntityManager; +import jakarta.persistence.EntityManagerFactory; +import jakarta.persistence.EntityTransaction; import org.apache.openjpa.persistence.test.AbstractPersistenceTestCase; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/distinctjoin/Course.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/distinctjoin/Course.java index 8d8ad1704..9c4cccd70 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/distinctjoin/Course.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/distinctjoin/Course.java @@ -22,20 +22,20 @@ import java.io.Serializable; import java.util.ArrayList; import java.util.List; -import javax.persistence.AttributeOverride; -import javax.persistence.AttributeOverrides; -import javax.persistence.CascadeType; -import javax.persistence.Column; -import javax.persistence.Embedded; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.Lob; -import javax.persistence.OneToMany; -import javax.persistence.OrderColumn; -import javax.persistence.Table; -import javax.persistence.Version; +import jakarta.persistence.AttributeOverride; +import jakarta.persistence.AttributeOverrides; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Column; +import jakarta.persistence.Embedded; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.Lob; +import jakarta.persistence.OneToMany; +import jakarta.persistence.OrderColumn; +import jakarta.persistence.Table; +import jakarta.persistence.Version; /** * This is a test entity to demonstrate OPENJPA-2179 diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/distinctjoin/Lecturer.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/distinctjoin/Lecturer.java index d73737c4f..343f09c61 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/distinctjoin/Lecturer.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/distinctjoin/Lecturer.java @@ -20,11 +20,11 @@ package org.apache.openjpa.persistence.distinctjoin; import java.io.Serializable; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.ManyToOne; -import javax.persistence.Version; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.Version; import org.apache.openjpa.persistence.jdbc.Index; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/distinctjoin/LocalizedText.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/distinctjoin/LocalizedText.java index ea55b5352..80eb28d6f 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/distinctjoin/LocalizedText.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/distinctjoin/LocalizedText.java @@ -18,8 +18,8 @@ */ package org.apache.openjpa.persistence.distinctjoin; -import javax.persistence.Embeddable; -import javax.persistence.Lob; +import jakarta.persistence.Embeddable; +import jakarta.persistence.Lob; /** * Embeddable for being used in {@link Course} diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/distinctjoin/TestDistinctJoin.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/distinctjoin/TestDistinctJoin.java index d50d0f8d0..9ad7f29ba 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/distinctjoin/TestDistinctJoin.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/distinctjoin/TestDistinctJoin.java @@ -22,9 +22,9 @@ import java.sql.SQLException; import java.util.ArrayList; import java.util.List; -import javax.persistence.EntityManager; -import javax.persistence.EntityTransaction; -import javax.persistence.Query; +import jakarta.persistence.EntityManager; +import jakarta.persistence.EntityTransaction; +import jakarta.persistence.Query; import org.apache.openjpa.lib.jdbc.JDBCListener; import org.apache.openjpa.lib.log.Log; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/dynamicschema/EntityReservedWords.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/dynamicschema/EntityReservedWords.java index 9f7afcd0f..11a1541ab 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/dynamicschema/EntityReservedWords.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/dynamicschema/EntityReservedWords.java @@ -26,8 +26,8 @@ import java.sql.Time; import java.sql.Timestamp; import java.util.Calendar; -import javax.persistence.Entity; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; /** diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/dynamicschema/EntityVeryLongNames.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/dynamicschema/EntityVeryLongNames.java index 49a245aab..d6e1b2718 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/dynamicschema/EntityVeryLongNames.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/dynamicschema/EntityVeryLongNames.java @@ -20,10 +20,10 @@ package org.apache.openjpa.persistence.dynamicschema; import java.io.Serializable; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.Table; /** diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/dynamicschema/ResWordEntity.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/dynamicschema/ResWordEntity.java index 66e3903f4..6aaff8138 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/dynamicschema/ResWordEntity.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/dynamicschema/ResWordEntity.java @@ -18,10 +18,10 @@ */ package org.apache.openjpa.persistence.dynamicschema; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.Table; @Entity @Table(name="ALIAS_TABLE") diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/dynamicschema/TestResWordEntity.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/dynamicschema/TestResWordEntity.java index a14c9e8a0..049b31f5e 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/dynamicschema/TestResWordEntity.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/dynamicschema/TestResWordEntity.java @@ -20,7 +20,7 @@ package org.apache.openjpa.persistence.dynamicschema; import java.util.Random; -import javax.persistence.EntityManager; +import jakarta.persistence.EntityManager; import org.apache.openjpa.persistence.OpenJPAEntityManagerFactorySPI; import org.apache.openjpa.persistence.test.SingleEMFTestCase; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/embed/A.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/embed/A.java index 114bade72..38dff9d4d 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/embed/A.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/embed/A.java @@ -23,17 +23,17 @@ import java.util.Date; import java.util.HashSet; import java.util.Set; -import javax.persistence.CollectionTable; -import javax.persistence.Column; -import javax.persistence.ElementCollection; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.OrderColumn; -import javax.persistence.Table; -import javax.persistence.Temporal; -import javax.persistence.TemporalType; +import jakarta.persistence.CollectionTable; +import jakarta.persistence.Column; +import jakarta.persistence.ElementCollection; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.OrderColumn; +import jakarta.persistence.Table; +import jakarta.persistence.Temporal; +import jakarta.persistence.TemporalType; @Entity @Table(name = "A_EMBED") diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/embed/Address.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/embed/Address.java index 077cb782d..dd8ceda60 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/embed/Address.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/embed/Address.java @@ -18,9 +18,9 @@ */ package org.apache.openjpa.persistence.embed; -import javax.persistence.Embedded; -import javax.persistence.Entity; -import javax.persistence.Table; +import jakarta.persistence.Embedded; +import jakarta.persistence.Entity; +import jakarta.persistence.Table; /** * An entity that extends a MappedSuperClass and embeds an entity. diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/embed/BaseEntity.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/embed/BaseEntity.java index ff25162ff..5fe230379 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/embed/BaseEntity.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/embed/BaseEntity.java @@ -18,9 +18,9 @@ */ package org.apache.openjpa.persistence.embed; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.MappedSuperclass; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.MappedSuperclass; /** * Mapped Super Class using auto-generated identity. diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/embed/Book.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/embed/Book.java index c8b74cb6e..1df9e8657 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/embed/Book.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/embed/Book.java @@ -21,13 +21,13 @@ package org.apache.openjpa.persistence.embed; import java.util.HashSet; import java.util.Set; -import javax.persistence.CollectionTable; -import javax.persistence.ElementCollection; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.Table; +import jakarta.persistence.CollectionTable; +import jakarta.persistence.ElementCollection; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.Table; @Entity @Table(name="BK_EMD") diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/embed/Company1.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/embed/Company1.java index 5a2f71a38..dc28476be 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/embed/Company1.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/embed/Company1.java @@ -21,11 +21,11 @@ package org.apache.openjpa.persistence.embed; import java.util.HashMap; import java.util.Map; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.MapKeyClass; -import javax.persistence.OneToMany; -import javax.persistence.Table; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.MapKeyClass; +import jakarta.persistence.OneToMany; +import jakarta.persistence.Table; @Entity @Table(name="Comp1_EMB") diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/embed/Company1_.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/embed/Company1_.java index 32fc036d7..4d9394047 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/embed/Company1_.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/embed/Company1_.java @@ -23,10 +23,10 @@ package org.apache.openjpa.persistence.embed; -import javax.persistence.metamodel.MapAttribute; -import javax.persistence.metamodel.SingularAttribute; +import jakarta.persistence.metamodel.MapAttribute; +import jakarta.persistence.metamodel.SingularAttribute; -@javax.persistence.metamodel.StaticMetamodel +@jakarta.persistence.metamodel.StaticMetamodel (value=org.apache.openjpa.persistence.embed.Company1.class) public class Company1_ { public static volatile SingularAttributejavax.persistence.*
hint keys have
+ * 3. Currently defined jakarta.persistence.*
hint keys have
* a equivalent counterpart to one of these FetchPlan keys.
* The JPA keys are mapped to equivalent FetchPlan hint keys.
*
diff --git a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/JPAFacadeHelper.java b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/JPAFacadeHelper.java
index 2ae417364..9d4b1c2ea 100644
--- a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/JPAFacadeHelper.java
+++ b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/JPAFacadeHelper.java
@@ -24,8 +24,8 @@ import java.math.BigInteger;
import java.util.Arrays;
import java.util.Collection;
-import javax.persistence.EntityManager;
-import javax.persistence.EntityManagerFactory;
+import jakarta.persistence.EntityManager;
+import jakarta.persistence.EntityManagerFactory;
import org.apache.openjpa.enhance.PCRegistry;
import org.apache.openjpa.kernel.Broker;
diff --git a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/JPAProperties.java b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/JPAProperties.java
index 162003c1a..0c88a93f4 100644
--- a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/JPAProperties.java
+++ b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/JPAProperties.java
@@ -24,8 +24,8 @@ import java.util.HashMap;
import java.util.Locale;
import java.util.Map;
-import javax.persistence.CacheRetrieveMode;
-import javax.persistence.CacheStoreMode;
+import jakarta.persistence.CacheRetrieveMode;
+import jakarta.persistence.CacheStoreMode;
import org.apache.openjpa.kernel.DataCacheRetrieveMode;
import org.apache.openjpa.kernel.DataCacheStoreMode;
@@ -44,7 +44,7 @@ import org.apache.openjpa.lib.util.StringUtil;
*/
public class JPAProperties {
private static final String REGEX_DOT = "\\.";
- public static final String PREFIX = "javax.persistence.";
+ public static final String PREFIX = "jakarta.persistence.";
public static final String PROVIDER = PREFIX + "provider";
public static final String TRANSACTION_TYPE = PREFIX + "transactionType";
@@ -72,7 +72,7 @@ public class JPAProperties {
public static final String VALIDATE_PRE_PERSIST = PREFIX + "validation.group.pre-persist";
public static final String VALIDATE_PRE_REMOVE = PREFIX + "validation.group.pre-remove";
public static final String VALIDATE_PRE_UPDATE = PREFIX + "validation.group.pre-update";
- public static final String VALIDATE_GROUP_DEFAULT = "javax.validation.groups.Default";
+ public static final String VALIDATE_GROUP_DEFAULT = "jakarta.validation.groups.Default";
private static Mapjavax.persistence.
.
+ * @return true if the given string merely prefixed with jakarta.persistence.
.
* Does not really check all the keys defined in the specification.
*/
public static boolean isValidKey(String key) {
@@ -105,9 +105,9 @@ public class JPAProperties {
/**
* Gets a bean-style property name from the given key.
*
- * @param key must begin with JPA property prefix javax.persistence
+ * @param key must begin with JPA property prefix jakarta.persistence
*
- * @return concatenates each part of the string leaving out javax.persistence.
prefix.
+ * @return concatenates each part of the string leaving out jakarta.persistence.
prefix.
* Part of string is what appears between DOT character.
*/
public static String getBeanProperty(String key) {
diff --git a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/LockScopesHelper.java b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/LockScopesHelper.java
index 0728a379f..1e05f6629 100644
--- a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/LockScopesHelper.java
+++ b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/LockScopesHelper.java
@@ -18,7 +18,7 @@
*/
package org.apache.openjpa.persistence;
-import javax.persistence.PessimisticLockScope;
+import jakarta.persistence.PessimisticLockScope;
import org.apache.openjpa.kernel.LockScopes;
@@ -30,7 +30,7 @@ import org.apache.openjpa.kernel.LockScopes;
*/
public class LockScopesHelper {
/**
- * Translates javax.persistence LockModeType to internal lock level.
+ * Translates jakarta.persistence LockModeType to internal lock level.
*/
public static int toLockScope(PessimisticLockScope scope) {
if (scope == null || scope == PessimisticLockScope.NORMAL)
@@ -39,7 +39,7 @@ public class LockScopesHelper {
}
/**
- * Translates internal lock level to javax.persistence LockModeType.
+ * Translates internal lock level to jakarta.persistence LockModeType.
*/
public static PessimisticLockScope fromLockScope(int level) {
if (level < LockScopes.LOCKSCOPE_EXTENDED)
diff --git a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/LockTimeoutException.java b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/LockTimeoutException.java
index f132187af..1a83eb9d5 100644
--- a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/LockTimeoutException.java
+++ b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/LockTimeoutException.java
@@ -35,7 +35,7 @@ import org.apache.openjpa.util.StoreException;
* @since 2.0.0
*/
public class LockTimeoutException
- extends javax.persistence.LockTimeoutException
+ extends jakarta.persistence.LockTimeoutException
implements Serializable, ExceptionInfo {
private static final long serialVersionUID = 1L;
diff --git a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/ManagedInterface.java b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/ManagedInterface.java
index 4278b79a7..7c905afc1 100644
--- a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/ManagedInterface.java
+++ b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/ManagedInterface.java
@@ -29,9 +29,9 @@ import java.lang.annotation.Target;
* New instances of this type can be created by invoking
* {@link OpenJPAEntityManager#createInstance(Class)}.
* Interfaces with this annotation should also be annotated with one of the JPA
- * entity annotations ({@link javax.persistence.Entity @Entity},
- * {@link javax.persistence.MappedSuperclass @MappedSuperclass},
- * or {@link javax.persistence.Embeddable @Embeddable}).
+ * entity annotations ({@link jakarta.persistence.Entity @Entity},
+ * {@link jakarta.persistence.MappedSuperclass @MappedSuperclass},
+ * or {@link jakarta.persistence.Embeddable @Embeddable}).
*
* @since 1.1.0
* @published
diff --git a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/MixedLockLevelsHelper.java b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/MixedLockLevelsHelper.java
index c3ac6a572..16147ae5c 100644
--- a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/MixedLockLevelsHelper.java
+++ b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/MixedLockLevelsHelper.java
@@ -20,7 +20,7 @@ package org.apache.openjpa.persistence;
import java.util.Locale;
-import javax.persistence.LockModeType;
+import jakarta.persistence.LockModeType;
import org.apache.openjpa.kernel.FetchConfiguration;
import org.apache.openjpa.kernel.LockLevels;
@@ -35,7 +35,7 @@ import org.apache.openjpa.kernel.MixedLockLevels;
*/
public class MixedLockLevelsHelper implements HintValueConverter {
/**
- * Translates javax.persistence LockModeType to internal lock level.
+ * Translates jakarta.persistence LockModeType to internal lock level.
*/
public static int toLockLevel(LockModeType mode) {
if (mode == null || mode == LockModeType.NONE)
@@ -74,7 +74,7 @@ public class MixedLockLevelsHelper implements HintValueConverter {
/**
- * Translates internal lock level to javax.persistence LockModeType.
+ * Translates internal lock level to jakarta.persistence LockModeType.
*/
public static LockModeType fromLockLevel(int level) {
if (level < LockLevels.LOCK_READ)
diff --git a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/NoResultException.java b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/NoResultException.java
index 9caaeb8bf..7510ee7f3 100644
--- a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/NoResultException.java
+++ b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/NoResultException.java
@@ -36,7 +36,7 @@ import org.apache.openjpa.util.UserException;
* @since 0.4.0
*/
public class NoResultException
- extends javax.persistence.NoResultException
+ extends jakarta.persistence.NoResultException
implements Serializable, ExceptionInfo {
diff --git a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/NonUniqueResultException.java b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/NonUniqueResultException.java
index 3a829fef1..7c948cdc8 100644
--- a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/NonUniqueResultException.java
+++ b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/NonUniqueResultException.java
@@ -36,7 +36,7 @@ import org.apache.openjpa.util.UserException;
* @since 0.4.0
*/
public class NonUniqueResultException
- extends javax.persistence.NonUniqueResultException
+ extends jakarta.persistence.NonUniqueResultException
implements Serializable, ExceptionInfo {
diff --git a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/OpenJPAEntityManager.java b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/OpenJPAEntityManager.java
index 907df0774..cc67e041a 100644
--- a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/OpenJPAEntityManager.java
+++ b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/OpenJPAEntityManager.java
@@ -22,10 +22,10 @@ import java.util.Collection;
import java.util.EnumSet;
import java.util.Set;
-import javax.persistence.EntityManager;
-import javax.persistence.EntityTransaction;
-import javax.persistence.LockModeType;
-import javax.persistence.Query;
+import jakarta.persistence.EntityManager;
+import jakarta.persistence.EntityTransaction;
+import jakarta.persistence.LockModeType;
+import jakarta.persistence.Query;
import org.apache.openjpa.event.CallbackModes;
import org.apache.openjpa.kernel.AutoClear;
diff --git a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/OpenJPAEntityManagerFactory.java b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/OpenJPAEntityManagerFactory.java
index a268a6ab6..4bd60dca2 100644
--- a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/OpenJPAEntityManagerFactory.java
+++ b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/OpenJPAEntityManagerFactory.java
@@ -22,7 +22,7 @@ import java.io.Serializable;
import java.util.Map;
import java.util.Set;
-import javax.persistence.EntityManagerFactory;
+import jakarta.persistence.EntityManagerFactory;
import org.apache.openjpa.persistence.criteria.OpenJPACriteriaBuilder;
import org.apache.openjpa.persistence.query.QueryBuilder;
diff --git a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/OpenJPAEntityTransaction.java b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/OpenJPAEntityTransaction.java
index 4588cfa58..871d9c0e2 100644
--- a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/OpenJPAEntityTransaction.java
+++ b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/OpenJPAEntityTransaction.java
@@ -18,7 +18,7 @@
*/
package org.apache.openjpa.persistence;
-import javax.persistence.EntityTransaction;
+import jakarta.persistence.EntityTransaction;
/**
* Extension of the JPA {@link EntityTransaction} interface.
@@ -35,8 +35,8 @@ public interface OpenJPAEntityTransaction
* except that the entity manager's internal atomic lock is utilized,
* so this method can be safely executed from multiple threads.
*
- * @see javax.persistence.EntityTransaction#commit()
- * @see javax.persistence.EntityTransaction#begin()
+ * @see jakarta.persistence.EntityTransaction#commit()
+ * @see jakarta.persistence.EntityTransaction#begin()
*/
void commitAndResume();
@@ -46,8 +46,8 @@ public interface OpenJPAEntityTransaction
* except that the entity manager's internal atomic lock is utilized,
* so this method can be safely executed from multiple threads.
*
- * @see javax.persistence.EntityTransaction#rollback()
- * @see javax.persistence.EntityTransaction#begin()
+ * @see jakarta.persistence.EntityTransaction#rollback()
+ * @see jakarta.persistence.EntityTransaction#begin()
*/
void rollbackAndResume();
diff --git a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/OpenJPAPersistence.java b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/OpenJPAPersistence.java
index b0a626dce..cc7059dcf 100644
--- a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/OpenJPAPersistence.java
+++ b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/OpenJPAPersistence.java
@@ -24,10 +24,9 @@ import java.util.Map;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
-import javax.persistence.EntityManager;
-import javax.persistence.EntityManagerFactory;
-import javax.persistence.Query;
-import javax.rmi.PortableRemoteObject;
+import jakarta.persistence.EntityManager;
+import jakarta.persistence.EntityManagerFactory;
+import jakarta.persistence.Query;
import org.apache.openjpa.enhance.PersistenceCapable;
import org.apache.openjpa.kernel.Bootstrap;
@@ -146,8 +145,7 @@ public class OpenJPAPersistence {
context = new InitialContext();
Object o = context.lookup(jndiLocation);
- return (OpenJPAEntityManagerFactory) PortableRemoteObject.narrow(o,
- OpenJPAEntityManagerFactory.class);
+ return (OpenJPAEntityManagerFactory) o;
} catch (NamingException ne) {
throw new ArgumentException(_loc.get("naming-exception",
jndiLocation), new Throwable[]{ ne }, null, true);
diff --git a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/OpenJPAPersistenceUtil.java b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/OpenJPAPersistenceUtil.java
index cb179f46f..8bd47d0aa 100644
--- a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/OpenJPAPersistenceUtil.java
+++ b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/OpenJPAPersistenceUtil.java
@@ -23,7 +23,7 @@ import java.util.Collection;
import java.util.HashSet;
import java.util.Map;
-import javax.persistence.spi.LoadState;
+import jakarta.persistence.spi.LoadState;
import org.apache.openjpa.enhance.PersistenceCapable;
import org.apache.openjpa.enhance.StateManager;
diff --git a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/OpenJPAQuery.java b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/OpenJPAQuery.java
index 9e5088743..89e08e003 100644
--- a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/OpenJPAQuery.java
+++ b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/OpenJPAQuery.java
@@ -24,10 +24,10 @@ import java.util.Date;
import java.util.Map;
import java.util.Set;
-import javax.persistence.FlushModeType;
-import javax.persistence.Query;
-import javax.persistence.TemporalType;
-import javax.persistence.TypedQuery;
+import jakarta.persistence.FlushModeType;
+import jakarta.persistence.Query;
+import jakarta.persistence.TemporalType;
+import jakarta.persistence.TypedQuery;
import org.apache.openjpa.kernel.Filters;
import org.apache.openjpa.kernel.QueryFlushModes;
diff --git a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/OptimisticLockException.java b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/OptimisticLockException.java
index 7ace0e2a5..946e3c519 100644
--- a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/OptimisticLockException.java
+++ b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/OptimisticLockException.java
@@ -36,7 +36,7 @@ import org.apache.openjpa.util.StoreException;
* @since 0.4.0
*/
public class OptimisticLockException
- extends javax.persistence.OptimisticLockException
+ extends jakarta.persistence.OptimisticLockException
implements Serializable, ExceptionInfo {
diff --git a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/ParameterImpl.java b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/ParameterImpl.java
index 472bd4b80..658ad1d73 100644
--- a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/ParameterImpl.java
+++ b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/ParameterImpl.java
@@ -18,7 +18,7 @@
*/
package org.apache.openjpa.persistence;
-import javax.persistence.Parameter;
+import jakarta.persistence.Parameter;
/**
* A user-defined parameter of a query.
diff --git a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceException.java b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceException.java
index 9da3df565..27afb3279 100644
--- a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceException.java
+++ b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceException.java
@@ -35,7 +35,7 @@ import org.apache.openjpa.util.Exceptions;
* @since 0.4.0
*/
public class PersistenceException
- extends javax.persistence.PersistenceException
+ extends jakarta.persistence.PersistenceException
implements Serializable, ExceptionInfo {
diff --git a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceMetaDataDefaults.java b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceMetaDataDefaults.java
index adb4bc7b5..d511e8ef9 100644
--- a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceMetaDataDefaults.java
+++ b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceMetaDataDefaults.java
@@ -18,8 +18,8 @@
*/
package org.apache.openjpa.persistence;
-import static javax.persistence.AccessType.FIELD;
-import static javax.persistence.AccessType.PROPERTY;
+import static jakarta.persistence.AccessType.FIELD;
+import static jakarta.persistence.AccessType.PROPERTY;
import static org.apache.openjpa.persistence.PersistenceStrategy.BASIC;
import static org.apache.openjpa.persistence.PersistenceStrategy.ELEM_COLL;
import static org.apache.openjpa.persistence.PersistenceStrategy.EMBEDDED;
@@ -50,25 +50,25 @@ import java.util.Locale;
import java.util.Map;
import java.util.Set;
-import javax.persistence.Access;
-import javax.persistence.AccessType;
-import javax.persistence.Basic;
-import javax.persistence.ElementCollection;
-import javax.persistence.Embeddable;
-import javax.persistence.Embedded;
-import javax.persistence.EmbeddedId;
-import javax.persistence.ManyToMany;
-import javax.persistence.ManyToOne;
-import javax.persistence.OneToMany;
-import javax.persistence.OneToOne;
-import javax.persistence.PostLoad;
-import javax.persistence.PostPersist;
-import javax.persistence.PostRemove;
-import javax.persistence.PostUpdate;
-import javax.persistence.PrePersist;
-import javax.persistence.PreRemove;
-import javax.persistence.PreUpdate;
-import javax.persistence.Transient;
+import jakarta.persistence.Access;
+import jakarta.persistence.AccessType;
+import jakarta.persistence.Basic;
+import jakarta.persistence.ElementCollection;
+import jakarta.persistence.Embeddable;
+import jakarta.persistence.Embedded;
+import jakarta.persistence.EmbeddedId;
+import jakarta.persistence.ManyToMany;
+import jakarta.persistence.ManyToOne;
+import jakarta.persistence.OneToMany;
+import jakarta.persistence.OneToOne;
+import jakarta.persistence.PostLoad;
+import jakarta.persistence.PostPersist;
+import jakarta.persistence.PostRemove;
+import jakarta.persistence.PostUpdate;
+import jakarta.persistence.PrePersist;
+import jakarta.persistence.PreRemove;
+import jakarta.persistence.PreUpdate;
+import jakarta.persistence.Transient;
import org.apache.openjpa.conf.OpenJPAConfiguration;
import org.apache.openjpa.enhance.Reflection;
@@ -907,7 +907,7 @@ public class PersistenceMetaDataDefaults
}
/**
- * Selects all element annotated with javax.persistence.*
or
+ * Selects all element annotated with jakarta.persistence.*
or
* org.apache.openjpa.*
annotation except the annotations
* marked to be ignored.
*/
@@ -918,7 +918,7 @@ public class PersistenceMetaDataDefaults
.getAnnotationsAction(obj));
for (Annotation anno : annos) {
String name = anno.annotationType().getName();
- if ((name.startsWith("javax.persistence.")
+ if ((name.startsWith("jakarta.persistence.")
|| name.startsWith("org.apache.openjpa.persistence."))
&& !_ignoredAnnos.contains(name))
return true;
diff --git a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceMetaDataFactory.java b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceMetaDataFactory.java
index 740915de3..6f5591f2a 100644
--- a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceMetaDataFactory.java
+++ b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceMetaDataFactory.java
@@ -33,18 +33,18 @@ import java.util.Map;
import java.util.Set;
import java.util.Stack;
-import javax.persistence.Embeddable;
-import javax.persistence.Entity;
-import javax.persistence.MappedSuperclass;
-import javax.persistence.NamedNativeQueries;
-import javax.persistence.NamedNativeQuery;
-import javax.persistence.NamedQueries;
-import javax.persistence.NamedQuery;
-import javax.persistence.NamedStoredProcedureQueries;
-import javax.persistence.NamedStoredProcedureQuery;
-import javax.persistence.SqlResultSetMapping;
-import javax.persistence.SqlResultSetMappings;
-import javax.persistence.metamodel.StaticMetamodel;
+import jakarta.persistence.Embeddable;
+import jakarta.persistence.Entity;
+import jakarta.persistence.MappedSuperclass;
+import jakarta.persistence.NamedNativeQueries;
+import jakarta.persistence.NamedNativeQuery;
+import jakarta.persistence.NamedQueries;
+import jakarta.persistence.NamedQuery;
+import jakarta.persistence.NamedStoredProcedureQueries;
+import jakarta.persistence.NamedStoredProcedureQuery;
+import jakarta.persistence.SqlResultSetMapping;
+import jakarta.persistence.SqlResultSetMappings;
+import jakarta.persistence.metamodel.StaticMetamodel;
import org.apache.openjpa.lib.conf.Configurable;
import org.apache.openjpa.lib.conf.Configuration;
diff --git a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceProductDerivation.java b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceProductDerivation.java
index b328593de..13fe71ebe 100644
--- a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceProductDerivation.java
+++ b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceProductDerivation.java
@@ -37,10 +37,10 @@ import java.util.Map;
import java.util.MissingResourceException;
import java.util.Set;
-import javax.persistence.SharedCacheMode;
-import javax.persistence.ValidationMode;
-import javax.persistence.spi.PersistenceUnitInfo;
-import javax.persistence.spi.PersistenceUnitTransactionType;
+import jakarta.persistence.SharedCacheMode;
+import jakarta.persistence.ValidationMode;
+import jakarta.persistence.spi.PersistenceUnitInfo;
+import jakarta.persistence.spi.PersistenceUnitTransactionType;
import org.apache.openjpa.conf.Compatibility;
import org.apache.openjpa.conf.OpenJPAConfiguration;
@@ -97,7 +97,7 @@ public class PersistenceProductDerivation
private HashMapjavax.persistence.*
or org.apache.openjpa.*
+ * jakarta.persistence.*
or org.apache.openjpa.*
* annotation.
*/
public static boolean isAnnotated(Element e) {
@@ -518,7 +518,7 @@ public class SourceAnnotationHandler
* annotations.
*
* @param annos null checks for any annotation that starts with
- * 'javax.persistence.' or 'openjpa.*'.
+ * 'jakarta.persistence.' or 'openjpa.*'.
*
*/
public static boolean isAnnotatedWith(Element e, Setjavax.annotation.Generated
should be added to the generated metamodel classes.
- This annotation is not available on Java 9 upwards unless the javax.annotation-api
+ jakarta.annotation.Generated
should be added to the generated metamodel classes.
+ This annotation is not available on Java 9 upwards unless the jakarta.annotation-api
is in the classpath.
The default is auto
. Set to force
to add the annotation even if it is
not in the classpath or to false
to never add it to the generated class.
diff --git a/openjpa-project/src/doc/manual/jpa_overview_em.xml b/openjpa-project/src/doc/manual/jpa_overview_em.xml
index 5cbbdf0af..039d2c190 100644
--- a/openjpa-project/src/doc/manual/jpa_overview_em.xml
+++ b/openjpa-project/src/doc/manual/jpa_overview_em.xml
@@ -875,7 +875,7 @@ controls whether to flush transactional changes before executing queries. This
allows the query results to take into account changes you have made during the
current transaction. Available