Was there a change with GORM setting the default m...
# questions
b
Was there a change with GORM setting the default mapping (upgrading to 7.0.0-RC2 currently)? We had a runtime.groovy file like this
Copy code
grails.gorm.default.mapping = {
    autowire true
}
but it doesn't appear to be getting picked up and the beans are not being injected into the domain class. Adding to the mapping block on the domain appears to work however.
j
Try the following in grails-app/conf/application.yml
grails:
gorm:
autowire: true
b
that doesn't seem to make a difference for me 😞
g
@billgonemad Just curious, are you running your app as a executable war file?
b
No, just getting started upgrading from 6. Still using run-app to test things out.
🙏 1
j
I tried to find an example in one of my apps and all I had was this non-autowire example
Copy code
EmailService emailService = Holders.applicationContext.getBean('emailService')
s
Which, performance wise is also a better solution - not as clean though
❤️ 1