Issue with Accessing Domain Objects After Dynamically Adding a Tenant in a Multi-Tenant Grails Application
I am developing a multi-tenant application using the schema-per-tenant approach in Grails 3.3.18. The new tenant schema is created successfully when I dynamically add a tenant. However, when I attempt to read data from the database for the newly added tenant, I encounter the following error:
Either class [contacts.Contact] is not a domain class or GORM has not been initialized correctly or has already been shutdown. Ensure GORM is loaded and configured correctly before calling any methods on...