Class TenantConfig
- java.lang.Object
-
- br.com.damsete.multitenant.config.TenantConfig
-
@Configuration public class TenantConfig extends Object
-
-
Constructor Summary
Constructors Constructor Description TenantConfig(org.springframework.boot.autoconfigure.orm.jpa.JpaProperties jpaProperties)
-
Method Summary
Modifier and Type Method Description org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBeanentityManagerFactory(DataSource dataSource, org.hibernate.engine.jdbc.connections.spi.MultiTenantConnectionProvider multiTenantConnectionProviderImpl, org.hibernate.context.spi.CurrentTenantIdentifierResolver currentTenantIdentifierResolverImpl)org.springframework.orm.jpa.JpaVendorAdapterjpaVendorAdapter()org.springframework.boot.web.servlet.FilterRegistrationBean<TenantFilter>tenantFilter()
-
-
-
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)
-
-