diff --git a/admin/broadleaf-contentmanagement-module/src/main/resources/META-INF/persistence-cms.xml b/admin/broadleaf-contentmanagement-module/src/main/resources/META-INF/persistence-cms.xml index 3c3f1ebca6..d9199de8e8 100644 --- a/admin/broadleaf-contentmanagement-module/src/main/resources/META-INF/persistence-cms.xml +++ b/admin/broadleaf-contentmanagement-module/src/main/resources/META-INF/persistence-cms.xml @@ -17,10 +17,10 @@ #L% --> - + xsi:schemaLocation="https://jakarta.ee/xml/ns/persistence https://jakarta.ee/xml/ns/persistence/persistence_3_0.xsd" + version="3.0"> config/bc/jpa/domain/Page.orm.xml config/bc/jpa/domain/StructuredContent.orm.xml @@ -58,16 +58,14 @@ - - + + - - diff --git a/admin/broadleaf-open-admin-platform/src/main/resources/META-INF/persistence-open-admin.xml b/admin/broadleaf-open-admin-platform/src/main/resources/META-INF/persistence-open-admin.xml index ab9956c99d..4efc1e63dd 100644 --- a/admin/broadleaf-open-admin-platform/src/main/resources/META-INF/persistence-open-admin.xml +++ b/admin/broadleaf-open-admin-platform/src/main/resources/META-INF/persistence-open-admin.xml @@ -17,10 +17,10 @@ #L% --> - + xsi:schemaLocation="https://jakarta.ee/xml/ns/persistence https://jakarta.ee/xml/ns/persistence/persistence_3_0.xsd" + version="3.0"> config/bc/jpa/domain/Admin.orm.xml org.broadleafcommerce.openadmin.server.security.domain.ForgotPasswordSecurityTokenImpl @@ -35,7 +35,7 @@ - + @@ -48,8 +48,6 @@ - - diff --git a/common/pom.xml b/common/pom.xml index 0bbfedf94c..12d06e34eb 100644 --- a/common/pom.xml +++ b/common/pom.xml @@ -142,11 +142,11 @@ - org.hibernate - hibernate-core-jakarta + org.hibernate.orm + hibernate-core - org.hibernate + org.hibernate.orm hibernate-jcache @@ -171,8 +171,8 @@ easymockclassextension - org.hibernate - hibernate-envers-jakarta + org.hibernate.orm + hibernate-envers jakarta.mail diff --git a/common/src/main/java/org/broadleafcommerce/common/extensibility/cache/DefaultJCacheUriProvider.java b/common/src/main/java/org/broadleafcommerce/common/extensibility/cache/DefaultJCacheUriProvider.java index 3cf0facfa3..9d85ab368a 100644 --- a/common/src/main/java/org/broadleafcommerce/common/extensibility/cache/DefaultJCacheUriProvider.java +++ b/common/src/main/java/org/broadleafcommerce/common/extensibility/cache/DefaultJCacheUriProvider.java @@ -34,10 +34,10 @@ public class DefaultJCacheUriProvider implements JCacheUriProvider { private static final Log LOG = LogFactory.getLog(DefaultJCacheUriProvider.class); - @Value("${hibernate.javax.cache.uri:#{null}}") + @Value("${hibernate.jakarta.cache.uri:#{null}}") protected String configLocation; - @Value("${hibernate.javax.cache.uri.relative:true}") + @Value("${hibernate.jakarta.cache.uri.relative:true}") protected boolean isLocationRelative; @Override @@ -51,11 +51,11 @@ public URI getJCacheUri() { if (url != null) { return url.toURI(); } - LOG.warn("The property hibernate.javax.cache.uri.relative was set to true however there was no resource found for " + configLocation + ". Falling back on creating a URI from the provided config location set by the property hibernate.javax.cache.uri"); + LOG.warn("The property hibernate.jakarta.cache.uri.relative was set to true however there was no resource found for " + configLocation + ". Falling back on creating a URI from the provided config location set by the property hibernate.jakarta.cache.uri"); } return new URI(configLocation); } catch (URISyntaxException e) { - throw new IllegalArgumentException("Incorrect URI syntax set for property hibernate.javax.cache.uri", e); + throw new IllegalArgumentException("Incorrect URI syntax set for property hibernate.jakarta.cache.uri", e); } } diff --git a/common/src/main/java/org/broadleafcommerce/common/extensibility/jpa/JCachePersistenceUnitPostProcessor.java b/common/src/main/java/org/broadleafcommerce/common/extensibility/jpa/JCachePersistenceUnitPostProcessor.java index add0211fa6..c62ce726e0 100644 --- a/common/src/main/java/org/broadleafcommerce/common/extensibility/jpa/JCachePersistenceUnitPostProcessor.java +++ b/common/src/main/java/org/broadleafcommerce/common/extensibility/jpa/JCachePersistenceUnitPostProcessor.java @@ -33,7 +33,7 @@ * Persistence unit post processor for dynamically modifying the persistence unit. *

* jcache.disable.cache - default: false, disables hibernate L2 and query cache if true - * hibernate.javax.cache.provider - default: null, overrides the cache provider defined in the persistence.xml + * hibernate.jakarta.cache.provider - default: null, overrides the cache provider defined in the persistence.xml * hibernate.cache.region.factory_class - default: null, overrides the cache region factory defined in the persistence.xml *

* uriProvider - A configurable provider class that returns the URI to be used for caching @@ -46,7 +46,7 @@ public class JCachePersistenceUnitPostProcessor implements PersistenceUnitPostPr @Value("${jcache.disable.cache:false}") protected Boolean disableCache; - @Value("${hibernate.javax.cache.provider:#{null}}") + @Value("${hibernate.jakarta.cache.provider:#{null}}") protected String cacheProvider; @Value("${hibernate.cache.region.factory_class:#{null}}") @@ -68,14 +68,14 @@ public void postProcessPersistenceUnitInfo(MutablePersistenceUnitInfo pui) { } URI cacheUri = uriProvider.getJCacheUri(); - properties.setProperty("hibernate.javax.cache.uri", cacheUri != null ? uriProvider.getJCacheUri().toString() : ""); + properties.setProperty("hibernate.jakarta.cache.uri", cacheUri != null ? uriProvider.getJCacheUri().toString() : ""); if (cacheRegionFactory != null) { properties.setProperty("hibernate.cache.region.factory_class", cacheRegionFactory); } if (cacheProvider != null) { - properties.setProperty("hibernate.javax.cache.provider", cacheProvider); + properties.setProperty("hibernate.jakarta.cache.provider", cacheProvider); } properties.putAll(overrideCacheProperties); diff --git a/common/src/main/resources/META-INF/persistence-common.xml b/common/src/main/resources/META-INF/persistence-common.xml index 8f71b5b373..867174411e 100644 --- a/common/src/main/resources/META-INF/persistence-common.xml +++ b/common/src/main/resources/META-INF/persistence-common.xml @@ -17,10 +17,10 @@ #L% --> - + xsi:schemaLocation="https://jakarta.ee/xml/ns/persistence https://jakarta.ee/xml/ns/persistence/persistence_3_0.xsd" + version="3.0"> config/bc/jpa/domain/SystemProperty.orm.xml config/bc/jpa/domain/ModuleConfiguration.orm.xml @@ -54,16 +54,14 @@ - - + + - - diff --git a/core/broadleaf-framework/src/main/resources/META-INF/persistence-framework.xml b/core/broadleaf-framework/src/main/resources/META-INF/persistence-framework.xml index 8044f08183..4e74ba9441 100644 --- a/core/broadleaf-framework/src/main/resources/META-INF/persistence-framework.xml +++ b/core/broadleaf-framework/src/main/resources/META-INF/persistence-framework.xml @@ -17,10 +17,10 @@ #L% --> - + xsi:schemaLocation="https://jakarta.ee/xml/ns/persistence https://jakarta.ee/xml/ns/persistence/persistence_3_0.xsd" + version="3.0"> config/bc/jpa/domain/Category.orm.xml config/bc/jpa/domain/CategoryXref.orm.xml @@ -150,8 +150,6 @@ - - diff --git a/core/broadleaf-profile/src/main/resources/META-INF/persistence-profile.xml b/core/broadleaf-profile/src/main/resources/META-INF/persistence-profile.xml index 1e4cbcd8e6..111763c967 100644 --- a/core/broadleaf-profile/src/main/resources/META-INF/persistence-profile.xml +++ b/core/broadleaf-profile/src/main/resources/META-INF/persistence-profile.xml @@ -17,10 +17,10 @@ #L% --> - + xsi:schemaLocation="https://jakarta.ee/xml/ns/persistence https://jakarta.ee/xml/ns/persistence/persistence_3_0.xsd" + version="3.0"> config/bc/jpa/domain/Address.orm.xml config/bc/jpa/domain/ChallengeQuestion.orm.xml diff --git a/pom.xml b/pom.xml index 6836d3b269..32eadcfb39 100644 --- a/pom.xml +++ b/pom.xml @@ -61,7 +61,7 @@ 3.0.3-GA 2.7.4 v20240317 - 5.6.15.Final + 6.4.10.Final 6.0.0 4.0.0 2.1.1 @@ -583,8 +583,8 @@ - org.hibernate - hibernate-envers-jakarta + org.hibernate.orm + hibernate-envers ${hibernate.version} @@ -599,26 +599,14 @@ 3.4.3.Final - org.hibernate - hibernate-core-jakarta + org.hibernate.orm + hibernate-core ${hibernate.version} org.jboss.logging jboss-logging - - javax.persistence - javax.persistence-api - - - javax.el - javax.el-api - - - org.osgi - org.osgi.core - jakarta.activation jakarta.activation-api @@ -630,7 +618,7 @@ - org.hibernate + org.hibernate.orm hibernate-jcache ${hibernate.version} @@ -638,10 +626,6 @@ javax.cache cache-api - - org.hibernate - hibernate-core -