Package org.hibernate.context.spi
Interface TenantSchemaMapper<T>
- Type Parameters:
T
- The type of the tenant id
Obtains the name of a database schema for a given tenant identifier when
schema-based multitenancy is enabled.
- Since:
- 7.1
-
Method Summary
Modifier and TypeMethodDescription@NonNull String
schemaName
(@NonNull T tenantIdentifier) The name of the database schema for data belonging to the tenant with the given identifier.
-
Method Details
-
schemaName
The name of the database schema for data belonging to the tenant with the given identifier.Called when "hibernate.multi_tenant.schema_mapper" is enabled.
- Parameters:
tenantIdentifier
- The tenant identifier- Returns:
- The name of the database schema belonging to that tenant
- See Also:
-