Package org.hibernate.cfg
Interface MultiTenancySettings
-
- All Known Subinterfaces:
AvailableSettings
- All Known Implementing Classes:
Environment
public interface MultiTenancySettings
-
-
Field Summary
Fields Modifier and Type Field Description static StringMULTI_TENANT_CONNECTION_PROVIDERSpecifies aMultiTenantConnectionProviderto use.static StringMULTI_TENANT_IDENTIFIER_RESOLVERSpecifies aCurrentTenantIdentifierResolverto use, either: an instance ofCurrentTenantIdentifierResolver, aClassrepresenting an class that implementsCurrentTenantIdentifierResolver, or the name of a class that implementsCurrentTenantIdentifierResolver.static StringTENANT_IDENTIFIER_TO_USE_FOR_ANY_KEYDuring bootstrap, Hibernate needs access to any Connection for access toDatabaseMetaData.
-
-
-
Field Detail
-
MULTI_TENANT_CONNECTION_PROVIDER
static final String MULTI_TENANT_CONNECTION_PROVIDER
Specifies aMultiTenantConnectionProviderto use. SinceMultiTenantConnectionProvideris also a service, it may be configured directly via theStandardServiceRegistryBuilder.- Since:
- 4.1
- See Also:
- Constant Field Values
-
MULTI_TENANT_IDENTIFIER_RESOLVER
static final String MULTI_TENANT_IDENTIFIER_RESOLVER
Specifies aCurrentTenantIdentifierResolverto use, either:- an instance of
CurrentTenantIdentifierResolver, - a
Classrepresenting an class that implementsCurrentTenantIdentifierResolver, or - the name of a class that implements
CurrentTenantIdentifierResolver.
- an instance of
-
TENANT_IDENTIFIER_TO_USE_FOR_ANY_KEY
static final String TENANT_IDENTIFIER_TO_USE_FOR_ANY_KEY
During bootstrap, Hibernate needs access to any Connection for access toDatabaseMetaData. This setting configures the name of the DataSource to use for this access- See Also:
- Constant Field Values
-
-