@Target({ ElementType.METHOD, ElementType.TYPE }) @Retention(RetentionPolicy.RUNTIME) @Inherited @Documented @GroovyASTTransformationClass("org.grails.datastore.gorm.transform.OrderedGormTransformation") @GormASTTransformationClass("org.grails.datastore.gorm.multitenancy.transform.TenantTransform") public @interface WithoutTenant
An AST transformation that makes a particular class or method execute without a tenant id. For example:
class FooService {
@WithoutTenant
void updateFoo() {
...
}
}
If you are using multiple GORM implementations and wish to create a transaction for a specific implementation then use this.
For example @Transactional(forDatastore=HibernateDatastore)