You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@grails.apache.org by bo...@apache.org on 2025/04/10 01:14:08 UTC
(grails-data-hibernate6) 03/10: Made MultipleDataSourcesWithCachingSpec pass
This is an automated email from the ASF dual-hosted git repository.
borinquenkid pushed a commit to branch hibernate6
in repository https://gitbox.apache.org/repos/asf/grails-data-hibernate6.git
commit 921f3ccbcc8e5b6655780a362f04da2a78c7f2d9
Author: Walter Duque de Estrada <wb...@mac.com>
AuthorDate: Tue Apr 1 19:55:27 2025 -0500
Made MultipleDataSourcesWithCachingSpec pass
---
grails-datastore-gorm-hibernate/build.gradle | 1 +
.../orm/hibernate/connections/MultipleDataSourcesWithCachingSpec.groovy | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/grails-datastore-gorm-hibernate/build.gradle b/grails-datastore-gorm-hibernate/build.gradle
index 7a874213..d6fb71b2 100644
--- a/grails-datastore-gorm-hibernate/build.gradle
+++ b/grails-datastore-gorm-hibernate/build.gradle
@@ -54,6 +54,7 @@ dependencies {
testImplementation 'org.postgresql:postgresql:42.7.5'
testImplementation "org.testcontainers:postgresql:1.20.4"
testImplementation "org.testcontainers:spock:1.20.4"
+ testImplementation 'org.jsr107.ri:cache-ri-impl:1.1.1'
testImplementation "org.apache.groovy:groovy-test-junit5"
testImplementation "org.apache.groovy:groovy-sql"
diff --git a/grails-datastore-gorm-hibernate/src/test/groovy/org/grails/orm/hibernate/connections/MultipleDataSourcesWithCachingSpec.groovy b/grails-datastore-gorm-hibernate/src/test/groovy/org/grails/orm/hibernate/connections/MultipleDataSourcesWithCachingSpec.groovy
index 80c43f89..bf50b128 100644
--- a/grails-datastore-gorm-hibernate/src/test/groovy/org/grails/orm/hibernate/connections/MultipleDataSourcesWithCachingSpec.groovy
+++ b/grails-datastore-gorm-hibernate/src/test/groovy/org/grails/orm/hibernate/connections/MultipleDataSourcesWithCachingSpec.groovy
@@ -20,7 +20,7 @@ class MultipleDataSourcesWithCachingSpec extends Specification {
'dataSource.formatSql': 'true',
'hibernate.flush.mode': 'COMMIT',
'hibernate.cache.queries': 'true',
- 'hibernate.cache':['use_second_level_cache':true,'region.factory_class':'org.hibernate.cache.ehcache.EhCacheRegionFactory'],
+ 'hibernate.cache':['use_second_level_cache':true,'region.factory_class':'org.hibernate.cache.jcache.internal.JCacheRegionFactory'],
'hibernate.hbm2ddl.auto': 'create',
'dataSources.books':[url:"jdbc:h2:mem:books;LOCK_TIMEOUT=10000"],
'dataSources.moreBooks':[url:"jdbc:h2:mem:moreBooks;LOCK_TIMEOUT=10000"]