Last updated by scryan7371
2 years ago
Annotate Domain Classes
As of 0.10, you only have to annotate domain classes that you want to be multi-tenant. Any domain classes that you want to be shared, such as acegi Role/Requestmap can be left without the annotation.import grails.plugin.multitenant.core.groovy.compiler.MultiTenant;@MultiTenant
class MyDomainClass {}Because the plugin hooks into the compiler, make sure to do a "grails clean" after you've annotated your classes. Eventually, we'd like to get rid of this step.