Class EntityManagerFactoryBean
- java.lang.Object
-
- io.micronaut.configuration.hibernate.jpa.EntityManagerFactoryBean
-
@Deprecated public class EntityManagerFactoryBean extends java.lang.Object
Deprecated.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 MetadataSources
createMetadataSources(StandardServiceRegistry serviceRegistry)
Deprecated.Creates theMetadataSources
for the given registry.protected MetadataSources
hibernateMetadataSources(JpaConfiguration jpaConfiguration, StandardServiceRegistry standardServiceRegistry)
Deprecated.Builds theMetadataSources
for the givenStandardServiceRegistry
.protected SessionFactory
hibernateSessionFactory(SessionFactoryBuilder sessionFactoryBuilder)
Deprecated.Builds the actualSessionFactory
from the builder.protected SessionFactoryBuilder
hibernateSessionFactoryBuilder(MetadataSources metadataSources, javax.validation.ValidatorFactory validatorFactory, Interceptor hibernateInterceptor)
Deprecated.Builds theSessionFactoryBuilder
to use.protected StandardServiceRegistry
hibernateStandardServiceRegistry(java.lang.String dataSourceName, javax.sql.DataSource dataSource)
Deprecated.Builds theStandardServiceRegistry
bean 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 theStandardServiceRegistry
bean 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 theMetadataSources
for 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 theSessionFactoryBuilder
to use.- Parameters:
metadataSources
- TheMetadataSources
validatorFactory
- TheValidatorFactory
hibernateInterceptor
- TheInterceptor
- Returns:
- The
SessionFactoryBuilder
-
hibernateSessionFactory
protected SessionFactory hibernateSessionFactory(SessionFactoryBuilder sessionFactoryBuilder)
Deprecated.Builds the actualSessionFactory
from the builder.- Parameters:
sessionFactoryBuilder
- TheSessionFactoryBuilder
- Returns:
- The
SessionFactory
-
createMetadataSources
protected MetadataSources createMetadataSources(@NonNull StandardServiceRegistry serviceRegistry)
Deprecated.Creates theMetadataSources
for the given registry.- Parameters:
serviceRegistry
- The registry- Returns:
- The sources
-
-