Class FixedTenantResolver

    • Method Detail

      • resolveTenantIdentifier

        @NonNull
        public java.io.Serializable resolveTenantIdentifier()
                                                     throws TenantNotFoundException
        Description copied from interface: TenantResolver

        Resolves the current tenant identifier.

        In a Multi Tenant setup where a single database is being used amongst multiple tenants this would be the object that is used as the tenantId property for each domain class.

        Specified by:
        resolveTenantIdentifier in interface TenantResolver
        Returns:
        the tenant ID if resolved.
        Throws:
        TenantNotFoundException - if tenant not found