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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]