org.hibernate.SessionFactory that is
responsible for resolving the current tenant identifier.
An implementation may be selected by setting the configuration property hibernate.tenant_identifier_resolver.
org.hibernate.cfg.Configuration#setCurrentTenantIdentifierResolver , org.hibernate.boot.SessionFactoryBuilder#applyCurrentTenantIdentifierResolver , org.hibernate.annotations.TenantId , org.hibernate.cfg.AvailableSettings#MULTI_TENANT_IDENTIFIER_RESOLVER
| Modifier and Type | Method and Description |
|---|---|
| public default boolean | Returns: true is this is root tenanta tenant id produced by tenantId)resolveCurrentTenantIdentifier()Does the given tenant id represent a "root" tenant with access to all partitions? |
| public T | Returns: The current tenant identifierResolve the current tenant identifier. |
| public boolean | Returns: true indicates that the extra validation will be performed;
false indicates it will not.Should we validate that the tenant identifier of a "current sessions" that
already exists when |
| isRoot | back to summary |
|---|---|
| public default boolean isRoot(T tenantId) Does the given tenant id represent a "root" tenant with access to all partitions?
| |
| resolveCurrentTenantIdentifier | back to summary |
|---|---|
| public T resolveCurrentTenantIdentifier() Resolve the current tenant identifier.
| |
| validateExistingCurrentSessions | back to summary |
|---|---|
| public boolean validateExistingCurrentSessions() Should we validate that the tenant identifier of a "current sessions" that
already exists when
| |