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
- Author:
- graemerocher
-
-
Constructor Summary
Constructors Constructor Description EntityManagerFactoryBean(JpaConfiguration jpaConfiguration, Integrator integrator, io.micronaut.context.ApplicationContext applicationContext)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected MetadataSourcescreateMetadataSources(StandardServiceRegistry serviceRegistry)Deprecated.Creates theMetadataSourcesfor the given registry.protected MetadataSourceshibernateMetadataSources(JpaConfiguration jpaConfiguration, StandardServiceRegistry standardServiceRegistry)Deprecated.Builds theMetadataSourcesfor the givenStandardServiceRegistry.protected SessionFactoryhibernateSessionFactory(SessionFactoryBuilder sessionFactoryBuilder)Deprecated.Builds the actualSessionFactoryfrom the builder.protected SessionFactoryBuilderhibernateSessionFactoryBuilder(MetadataSources metadataSources, javax.validation.ValidatorFactory validatorFactory, Interceptor hibernateInterceptor)Deprecated.Builds theSessionFactoryBuilderto use.protected 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 Integrator integrator, io.micronaut.context.ApplicationContext applicationContext)Deprecated.- Parameters:
jpaConfiguration- The JPA configurationintegrator- The integrationapplicationContext- The application context
-
-
Method Detail
-
hibernateStandardServiceRegistry
protected 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 MetadataSources hibernateMetadataSources(@Parameter @Nullable JpaConfiguration jpaConfiguration, StandardServiceRegistry standardServiceRegistry)
Deprecated.Builds theMetadataSourcesfor the givenStandardServiceRegistry.- Parameters:
jpaConfiguration- The JPA configurationstandardServiceRegistry- The standard service registry- Returns:
- The
MetadataSources
-
hibernateSessionFactoryBuilder
protected SessionFactoryBuilder hibernateSessionFactoryBuilder(MetadataSources metadataSources, @Nullable javax.validation.ValidatorFactory validatorFactory, @Nullable Interceptor hibernateInterceptor)
Deprecated.Builds theSessionFactoryBuilderto use.- Parameters:
metadataSources- TheMetadataSourcesvalidatorFactory- TheValidatorFactoryhibernateInterceptor- TheInterceptor- Returns:
- The
SessionFactoryBuilder
-
hibernateSessionFactory
protected SessionFactory hibernateSessionFactory(SessionFactoryBuilder sessionFactoryBuilder)
Deprecated.Builds the actualSessionFactoryfrom the builder.- Parameters:
sessionFactoryBuilder- TheSessionFactoryBuilder- Returns:
- The
SessionFactory
-
createMetadataSources
protected MetadataSources createMetadataSources(@NonNull StandardServiceRegistry serviceRegistry)
Deprecated.Creates theMetadataSourcesfor the given registry.- Parameters:
serviceRegistry- The registry- Returns:
- The sources
-
-