You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@grails.apache.org by "jamesfredley (via GitHub)" <gi...@apache.org> on 2025/09/09 19:11:08 UTC
[PR] Add upgrade notes for hibernate.cache.region.factory_class [grails-core]
jamesfredley opened a new pull request, #15063:
URL: https://github.com/apache/grails-core/pull/15063
Documents the deprecation and removal of org.hibernate.cache.ehcache.SingletonEhCacheRegionFactory in Hibernate 6.0, its incompatibility with hibernate-jakarta 5.6.x, and provides guidance for updating configuration and dependencies when upgrading to Grails 7.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@grails.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Add upgrade notes for hibernate.cache.region.factory_class [grails-core]
Posted by "jamesfredley (via GitHub)" <gi...@apache.org>.
jamesfredley merged PR #15063:
URL: https://github.com/apache/grails-core/pull/15063
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@grails.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Add upgrade notes for hibernate.cache.region.factory_class [grails-core]
Posted by "matrei (via GitHub)" <gi...@apache.org>.
matrei commented on code in PR #15063:
URL: https://github.com/apache/grails-core/pull/15063#discussion_r2334797056
##########
grails-doc/src/en/guide/upgrading/upgrading60x.adoc:
##########
@@ -434,3 +434,40 @@ To learn more about development reloading options, please see the link:gettingSt
===== 12.18 grails-i18n plugin
`org.apache.grails:grails-i18n` has been changed to `org.apache.grails.i18n:grails-i18n` and is provided transitively, remove `org.apache.grails:grails-i18n` and `org.grails:grails-plugin-i18n` from your dependency list
+
+===== 12.19 hibernate.cache.region.factory_class
+
+`org.hibernate.cache.ehcache.SingletonEhCacheRegionFactory` is deprecated in Hibernate 5.6 and is not compatible with `org.hibernate:hibernate-core-jakarta:{hibernate5Version}`, which is used in Grails 7.
+
+```console
+ hibernate:
+ allow_update_outside_transaction: true
+ cache:
+ queries: false
+ use_second_level_cache: true
+ use_query_cache: false
+ region:
+ factory_class: 'org.hibernate.cache.ehcache.SingletonEhCacheRegionFactory'
+```
+
+If your application sets `hibernate.cache.region.factory_class` to `org.hibernate.cache.ehcache.SingletonEhCacheRegionFactory` it will add the `non-jakarta` version of `hibernate-core` to your classpath which will cause `NoClassDefFoundError` and `ClassNotFoundException` errors.
+
+You will need to change it to `jcache` and add the Ehcache dependency as follows:
+
+```console
Review Comment:
console -> yaml ?
##########
grails-doc/src/en/guide/upgrading/upgrading60x.adoc:
##########
@@ -434,3 +434,40 @@ To learn more about development reloading options, please see the link:gettingSt
===== 12.18 grails-i18n plugin
`org.apache.grails:grails-i18n` has been changed to `org.apache.grails.i18n:grails-i18n` and is provided transitively, remove `org.apache.grails:grails-i18n` and `org.grails:grails-plugin-i18n` from your dependency list
+
+===== 12.19 hibernate.cache.region.factory_class
+
+`org.hibernate.cache.ehcache.SingletonEhCacheRegionFactory` is deprecated in Hibernate 5.6 and is not compatible with `org.hibernate:hibernate-core-jakarta:{hibernate5Version}`, which is used in Grails 7.
+
+```console
Review Comment:
console -> yaml ?
##########
grails-doc/src/en/guide/upgrading/upgrading60x.adoc:
##########
@@ -434,3 +434,40 @@ To learn more about development reloading options, please see the link:gettingSt
===== 12.18 grails-i18n plugin
`org.apache.grails:grails-i18n` has been changed to `org.apache.grails.i18n:grails-i18n` and is provided transitively, remove `org.apache.grails:grails-i18n` and `org.grails:grails-plugin-i18n` from your dependency list
+
+===== 12.19 hibernate.cache.region.factory_class
+
+`org.hibernate.cache.ehcache.SingletonEhCacheRegionFactory` is deprecated in Hibernate 5.6 and is not compatible with `org.hibernate:hibernate-core-jakarta:{hibernate5Version}`, which is used in Grails 7.
+
+```console
+ hibernate:
+ allow_update_outside_transaction: true
+ cache:
+ queries: false
+ use_second_level_cache: true
+ use_query_cache: false
+ region:
+ factory_class: 'org.hibernate.cache.ehcache.SingletonEhCacheRegionFactory'
+```
+
+If your application sets `hibernate.cache.region.factory_class` to `org.hibernate.cache.ehcache.SingletonEhCacheRegionFactory` it will add the `non-jakarta` version of `hibernate-core` to your classpath which will cause `NoClassDefFoundError` and `ClassNotFoundException` errors.
+
+You will need to change it to `jcache` and add the Ehcache dependency as follows:
+
+```console
+ hibernate:
+ allow_update_outside_transaction: true
+ cache:
+ queries: false
+ use_second_level_cache: true
+ use_query_cache: false
+ region:
+ factory_class: 'jcache'
+```
+
+```console
Review Comment:
console -> groovy ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@grails.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Add upgrade notes for hibernate.cache.region.factory_class [grails-core]
Posted by "jamesfredley (via GitHub)" <gi...@apache.org>.
jamesfredley commented on code in PR #15063:
URL: https://github.com/apache/grails-core/pull/15063#discussion_r2335261998
##########
grails-doc/src/en/guide/upgrading/upgrading60x.adoc:
##########
@@ -434,3 +434,40 @@ To learn more about development reloading options, please see the link:gettingSt
===== 12.18 grails-i18n plugin
`org.apache.grails:grails-i18n` has been changed to `org.apache.grails.i18n:grails-i18n` and is provided transitively, remove `org.apache.grails:grails-i18n` and `org.grails:grails-plugin-i18n` from your dependency list
+
+===== 12.19 hibernate.cache.region.factory_class
+
+`org.hibernate.cache.ehcache.SingletonEhCacheRegionFactory` is deprecated in Hibernate 5.6 and is not compatible with `org.hibernate:hibernate-core-jakarta:{hibernate5Version}`, which is used in Grails 7.
+
+```console
Review Comment:
I cleaned these three up plus some others in this file which were the source of the copied formatting.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@grails.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org