Class TenantConfig


  • @Configuration
    public class TenantConfig
    extends Object
    • Constructor Summary

      Constructors 
      Constructor Description
      TenantConfig​(org.springframework.boot.autoconfigure.orm.jpa.JpaProperties jpaProperties)  
    • Constructor Detail

      • TenantConfig

        @Autowired
        public TenantConfig​(org.springframework.boot.autoconfigure.orm.jpa.JpaProperties jpaProperties)
    • Method Detail

      • tenantFilter

        @Bean
        public org.springframework.boot.web.servlet.FilterRegistrationBean<TenantFilter> tenantFilter()
      • jpaVendorAdapter

        @Bean
        public org.springframework.orm.jpa.JpaVendorAdapter jpaVendorAdapter()
      • entityManagerFactory

        @Bean
        public org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean entityManagerFactory​(DataSource dataSource,
                                                                                                       org.hibernate.engine.jdbc.connections.spi.MultiTenantConnectionProvider multiTenantConnectionProviderImpl,
                                                                                                       org.hibernate.context.spi.CurrentTenantIdentifierResolver currentTenantIdentifierResolverImpl)