Class PapTenantIdentifierResolver
java.lang.Object
cn.net.pap.example.proguard.config.PapTenantIdentifierResolver
- All Implemented Interfaces:
org.hibernate.context.spi.CurrentTenantIdentifierResolver
@Component
public class PapTenantIdentifierResolver
extends Object
implements org.hibernate.context.spi.CurrentTenantIdentifierResolver
多租户
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.hibernate.context.spi.CurrentTenantIdentifierResolver
isRoot
-
Constructor Details
-
PapTenantIdentifierResolver
public PapTenantIdentifierResolver()
-
-
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
-