Hello, in the process of upgrading from Grails 6 t...
# questions
n
Hello, in the process of upgrading from Grails 6 to Grails 7.0.0-RC1. Running into this below exception from our SQL Server database with Grails 7, but not with Grails 6. We are using multiple data sources defined in application.groovy. For this specific [blah] data source, we are using 2 different schemas with a default_schema of dbo. Either schema being used is defined in its proper domain. For Grails 7, is there was some kind of update in gorm where we need to specifically define schema level multi tenancy where we did not have to in Grails 6?
Copy code
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.grails.orm.hibernate.HibernateDatastore]: Constructor threw exception
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.grails.orm.hibernate.HibernateDatastore]: Constructor threw exception

	at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:223)
	at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:146)
	at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:318)
	... 120 common frames omitted
Caused by: org.grails.datastore.mapping.core.exceptions.ConfigurationException: DataSource not found for name [blah] in configuration. Please check your multiple data sources configuration and try again.
Caused by: org.grails.datastore.mapping.core.exceptions.ConfigurationException: DataSource not found for name [blah] in configuration. Please check your multiple data sources configuration and try again.

	at org.grails.orm.hibernate.HibernateDatastore.getDatastoreForConnection(HibernateDatastore.java:363)
	at org.grails.orm.hibernate.HibernateGormEnhancer.getStaticApi(HibernateGormEnhancer.groovy:51)
	at org.grails.datastore.gorm.GormEnhancer.registerEntity(GormEnhancer.groovy:141)
	at org.grails.datastore.gorm.GormEnhancer.<init>(GormEnhancer.groovy:124)
	at org.grails.orm.hibernate.HibernateGormEnhancer.<init>(HibernateGormEnhancer.groovy:45)
	at org.grails.orm.hibernate.HibernateDatastore.initialize(HibernateDatastore.java:445)
	at org.grails.orm.hibernate.HibernateDatastore.<init>(HibernateDatastore.java:180)
	at org.grails.orm.hibernate.HibernateDatastore.<init>(HibernateDatastore.java:216)
j
Some of these test projects we run in CI might help identify the difference. https://github.com/apache/grails-core/tree/7.0.x/grails-test-examples/hibernate5