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 Details

    • PapTenantIdentifierResolver

      public PapTenantIdentifierResolver()
  • Method Details

    • resolveCurrentTenantIdentifier

      public String resolveCurrentTenantIdentifier()
      Specified by:
      resolveCurrentTenantIdentifier in interface org.hibernate.context.spi.CurrentTenantIdentifierResolver
    • validateExistingCurrentSessions

      public boolean validateExistingCurrentSessions()
      Specified by:
      validateExistingCurrentSessions in interface org.hibernate.context.spi.CurrentTenantIdentifierResolver