Package com.totvs.tjf.tenant.schema
Class SchemaConfiguration
- java.lang.Object
-
- com.totvs.tjf.tenant.schema.SchemaConfiguration
-
@Configuration @ComponentScan("com.totvs.tjf.tenant") public class SchemaConfiguration extends Object
-
-
Constructor Summary
Constructors Constructor Description SchemaConfiguration(String implicitNamingStrategy, String physicalNamingStrategy, com.totvs.tjf.core.utils.SchemaUtils schemaUtils)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean
entityManagerFactory(org.springframework.context.ApplicationContext appContext, org.springframework.boot.autoconfigure.orm.jpa.JpaProperties jpaProperties, DataSource dataSource, org.hibernate.engine.jdbc.connections.spi.MultiTenantConnectionProvider multiTenantConnectionProviderImpl, org.hibernate.context.spi.CurrentTenantIdentifierResolver currentTenantIdentifierResolverImpl)
org.hibernate.context.spi.CurrentTenantIdentifierResolver
getResolver()
org.springframework.orm.jpa.JpaVendorAdapter
jpaVendorAdapter()
com.totvs.tjf.core.migration.SchemaService
schemaService(javax.persistence.EntityManager entityManager)
-
-
-
Constructor Detail
-
SchemaConfiguration
public SchemaConfiguration(@Value("${spring.jpa.hibernate.naming.implicit-strategy:org.springframework.boot.orm.jpa.hibernate.SpringImplicitNamingStrategy}") String implicitNamingStrategy, @Value("${spring.jpa.hibernate.naming.physical-strategy:org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy}") String physicalNamingStrategy, com.totvs.tjf.core.utils.SchemaUtils schemaUtils)
-
-
Method Detail
-
schemaService
@Bean @ConditionalOnMissingBean public com.totvs.tjf.core.migration.SchemaService schemaService(javax.persistence.EntityManager entityManager)
-
jpaVendorAdapter
@Bean public org.springframework.orm.jpa.JpaVendorAdapter jpaVendorAdapter()
-
getResolver
@Bean public org.hibernate.context.spi.CurrentTenantIdentifierResolver getResolver()
-
entityManagerFactory
@Bean public org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean entityManagerFactory(org.springframework.context.ApplicationContext appContext, org.springframework.boot.autoconfigure.orm.jpa.JpaProperties jpaProperties, DataSource dataSource, org.hibernate.engine.jdbc.connections.spi.MultiTenantConnectionProvider multiTenantConnectionProviderImpl, org.hibernate.context.spi.CurrentTenantIdentifierResolver currentTenantIdentifierResolverImpl)
-
-