Top Fields
org.hibernate.cfg

public Interface MultiTenancySettings

Known Direct Subinterfaces
org.hibernate.cfg.AvailableSettings
Imports
org.hibernate.context.spi.CurrentTenantIdentifierResolver, org.hibernate.engine.jdbc.connections.spi.MultiTenantConnectionProvider

Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
public static final String
public static final String
MULTI_TENANT_IDENTIFIER_RESOLVER

Specifies a CurrentTenantIdentifierResolver to use, either:

  • an instance of CurrentTenantIdentifierResolver,
  • a Class representing an class that implements CurrentTenantIdentifierResolver, or
  • the name of a class that implements CurrentTenantIdentifierResolver.
public static final String
TENANT_IDENTIFIER_TO_USE_FOR_ANY_KEY

During bootstrap, Hibernate needs access to any Connection for access to java.sql.DatabaseMetaData.

Field Detail

MULTI_TENANT_CONNECTION_PROVIDERback to summary
public static final String MULTI_TENANT_CONNECTION_PROVIDER

Specifies a MultiTenantConnectionProvider to use. Since MultiTenantConnectionProvider is also a service, it may be configured directly via the org.hibernate.boot.registry.StandardServiceRegistryBuilder.

Since
4.1
MULTI_TENANT_IDENTIFIER_RESOLVERback to summary
public static final String MULTI_TENANT_IDENTIFIER_RESOLVER

Specifies a CurrentTenantIdentifierResolver to use, either:

  • an instance of CurrentTenantIdentifierResolver,
  • a Class representing an class that implements CurrentTenantIdentifierResolver, or
  • the name of a class that implements CurrentTenantIdentifierResolver.
Since
4.1
See Also
org.hibernate.boot.SessionFactoryBuilder#applyCurrentTenantIdentifierResolver(CurrentTenantIdentifierResolver)
TENANT_IDENTIFIER_TO_USE_FOR_ANY_KEYback to summary
public static final String TENANT_IDENTIFIER_TO_USE_FOR_ANY_KEY

During bootstrap, Hibernate needs access to any Connection for access to java.sql.DatabaseMetaData.

This setting configures the name of the DataSource to use for this access