To use Micronaut and GORM multitenancy capabilities you must have the dependency on your classpath. For example in build.gradle:

    build.gradle

    GORM is a powerful Groovy-based data access toolkit for the JVM with implementations several data access technologies (Hibernate, Neo4j, MongoDB, GraphQL …​).

    GORM supports the following different multitenancy modes:

    • DATABASE - A separate database with a separate connection pool is used to store each tenants data.

    • SCHEMA - The same database, but different schemas are used to store each tenants data.

    In order to use GORM - Multitenancy you will need to configure the following properties: grails.gorm.multiTenancy.mode and grails.gorm.multiTenancy.tenantResolverClass.

    The following table contains all of the TenantResolver implementations that ship with `multitenancy-gorm module and are usable out of the box.

    1. gorm:
    2. mode: DISCRIMINATOR

    Please, read to learn more.