Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 49c6963

Browse files
committed
Update HibernateDatastoreSpringInitializer
Pass serviceClass to the constructor while loading DataService because sometime the closure is not evaluated early enough to set it in the arguments which causes apache/grails-core#12057.
1 parent 72b6b74 commit 49c6963

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

grails-plugin/src/main/groovy/grails/orm/bootstrap/HibernateDatastoreSpringInitializer.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ class HibernateDatastoreSpringInitializer extends AbstractDatastoreInitializer {
168168

169169
loadDataServices(null)
170170
.each {serviceName, serviceClass->
171-
"$serviceName"(DatastoreServiceMethodInvokingFactoryBean) {
171+
"$serviceName"(DatastoreServiceMethodInvokingFactoryBean, serviceClass) {
172172
targetObject = ref("hibernateDatastore")
173173
targetMethod = 'getService'
174174
arguments = [serviceClass]

0 commit comments

Comments
 (0)