Class EntityManagerFactoryBean
- java.lang.Object
-
- io.micronaut.configuration.hibernate.jpa.EntityManagerFactoryBean
-
@Deprecated public class EntityManagerFactoryBean extends java.lang.ObjectDeprecated.Class is deprecated to be removed.A factory bean for constructing theEntityManagerFactory.- Since:
- 1.0
-
-
Constructor Summary
Constructors Constructor Description EntityManagerFactoryBean(JpaConfiguration jpaConfiguration, org.hibernate.integrator.spi.Integrator integrator, io.micronaut.context.ApplicationContext applicationContext)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected org.hibernate.boot.MetadataSourcescreateMetadataSources(org.hibernate.boot.registry.StandardServiceRegistry serviceRegistry)Deprecated.Creates theMetadataSourcesfor the given registry.protected org.hibernate.boot.MetadataSourceshibernateMetadataSources(JpaConfiguration jpaConfiguration, org.hibernate.boot.registry.StandardServiceRegistry standardServiceRegistry)Deprecated.Builds theMetadataSourcesfor the givenStandardServiceRegistry.protected org.hibernate.SessionFactoryhibernateSessionFactory(org.hibernate.boot.SessionFactoryBuilder sessionFactoryBuilder)Deprecated.Builds the actualSessionFactoryfrom the builder.protected org.hibernate.boot.SessionFactoryBuilderhibernateSessionFactoryBuilder(org.hibernate.boot.MetadataSources metadataSources, javax.validation.ValidatorFactory validatorFactory, org.hibernate.Interceptor hibernateInterceptor)Deprecated.Builds theSessionFactoryBuilderto use.protected org.hibernate.boot.registry.StandardServiceRegistryhibernateStandardServiceRegistry(java.lang.String dataSourceName, javax.sql.DataSource dataSource)Deprecated.Builds theStandardServiceRegistrybean for the givenDataSource.
-
-
-
Constructor Detail
-
EntityManagerFactoryBean
public EntityManagerFactoryBean(@Primary @Nullable JpaConfiguration jpaConfiguration, @Primary @Nullable org.hibernate.integrator.spi.Integrator integrator, io.micronaut.context.ApplicationContext applicationContext)Deprecated.- Parameters:
jpaConfiguration- The JPA configurationintegrator- The integrationapplicationContext- The application context
-
-
Method Detail
-
hibernateStandardServiceRegistry
protected org.hibernate.boot.registry.StandardServiceRegistry hibernateStandardServiceRegistry(@Parameter java.lang.String dataSourceName, javax.sql.DataSource dataSource)Deprecated.Builds theStandardServiceRegistrybean for the givenDataSource.- Parameters:
dataSourceName- The data source namedataSource- The data source- Returns:
- The
StandardServiceRegistry
-
hibernateMetadataSources
protected org.hibernate.boot.MetadataSources hibernateMetadataSources(@Parameter @Nullable JpaConfiguration jpaConfiguration, org.hibernate.boot.registry.StandardServiceRegistry standardServiceRegistry)Deprecated.Builds theMetadataSourcesfor the givenStandardServiceRegistry.- Parameters:
jpaConfiguration- The JPA configurationstandardServiceRegistry- The standard service registry- Returns:
- The
MetadataSources
-
hibernateSessionFactoryBuilder
protected org.hibernate.boot.SessionFactoryBuilder hibernateSessionFactoryBuilder(org.hibernate.boot.MetadataSources metadataSources, @Nullable javax.validation.ValidatorFactory validatorFactory, @Nullable org.hibernate.Interceptor hibernateInterceptor)Deprecated.Builds theSessionFactoryBuilderto use.- Parameters:
metadataSources- TheMetadataSourcesvalidatorFactory- TheValidatorFactoryhibernateInterceptor- TheInterceptor- Returns:
- The
SessionFactoryBuilder
-
hibernateSessionFactory
protected org.hibernate.SessionFactory hibernateSessionFactory(org.hibernate.boot.SessionFactoryBuilder sessionFactoryBuilder)
Deprecated.Builds the actualSessionFactoryfrom the builder.- Parameters:
sessionFactoryBuilder- TheSessionFactoryBuilder- Returns:
- The
SessionFactory
-
createMetadataSources
protected org.hibernate.boot.MetadataSources createMetadataSources(@NonNull org.hibernate.boot.registry.StandardServiceRegistry serviceRegistry)Deprecated.Creates theMetadataSourcesfor the given registry.- Parameters:
serviceRegistry- The registry- Returns:
- The sources
-
-