Class MultiTenantResolver
java.lang.Object
org.fiware.mintaka.persistence.tenancy.MultiTenantResolver
- All Implemented Interfaces:
org.hibernate.context.spi.CurrentTenantIdentifierResolver
@Singleton
public class MultiTenantResolver
extends Object
implements org.hibernate.context.spi.CurrentTenantIdentifierResolver
Tenant provider for datasource selection. Returns a default tenant in case none is given.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
-
Constructor Details
-
MultiTenantResolver
public MultiTenantResolver()
-
-
Method Details
-
resolveCurrentTenantIdentifier
- Specified by:
resolveCurrentTenantIdentifier
in interfaceorg.hibernate.context.spi.CurrentTenantIdentifierResolver
-
validateExistingCurrentSessions
public boolean validateExistingCurrentSessions()- Specified by:
validateExistingCurrentSessions
in interfaceorg.hibernate.context.spi.CurrentTenantIdentifierResolver
-