Class EntityManagerFactoryBean


  • @Deprecated
    public class EntityManagerFactoryBean
    extends java.lang.Object
    Deprecated.
    Class is deprecated to be removed.
    A factory bean for constructing the EntityManagerFactory.
    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.MetadataSources createMetadataSources​(org.hibernate.boot.registry.StandardServiceRegistry serviceRegistry)
      Deprecated.
      Creates the MetadataSources for the given registry.
      protected org.hibernate.boot.MetadataSources hibernateMetadataSources​(JpaConfiguration jpaConfiguration, org.hibernate.boot.registry.StandardServiceRegistry standardServiceRegistry)
      Deprecated.
      Builds the MetadataSources for the given StandardServiceRegistry.
      protected org.hibernate.SessionFactory hibernateSessionFactory​(org.hibernate.boot.SessionFactoryBuilder sessionFactoryBuilder)
      Deprecated.
      Builds the actual SessionFactory from the builder.
      protected org.hibernate.boot.SessionFactoryBuilder hibernateSessionFactoryBuilder​(org.hibernate.boot.MetadataSources metadataSources, javax.validation.ValidatorFactory validatorFactory, org.hibernate.Interceptor hibernateInterceptor)
      Deprecated.
      Builds the SessionFactoryBuilder to use.
      protected org.hibernate.boot.registry.StandardServiceRegistry hibernateStandardServiceRegistry​(java.lang.String dataSourceName, javax.sql.DataSource dataSource)
      Deprecated.
      Builds the StandardServiceRegistry bean for the given DataSource.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 configuration
        integrator - The integration
        applicationContext - The application context
    • Method Detail

      • hibernateStandardServiceRegistry

        protected org.hibernate.boot.registry.StandardServiceRegistry hibernateStandardServiceRegistry​(@Parameter
                                                                                                       java.lang.String dataSourceName,
                                                                                                       javax.sql.DataSource dataSource)
        Deprecated.
        Builds the StandardServiceRegistry bean for the given DataSource.
        Parameters:
        dataSourceName - The data source name
        dataSource - 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 the MetadataSources for the given StandardServiceRegistry.
        Parameters:
        jpaConfiguration - The JPA configuration
        standardServiceRegistry - 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 the SessionFactoryBuilder to use.
        Parameters:
        metadataSources - The MetadataSources
        validatorFactory - The ValidatorFactory
        hibernateInterceptor - The Interceptor
        Returns:
        The SessionFactoryBuilder
      • hibernateSessionFactory

        protected org.hibernate.SessionFactory hibernateSessionFactory​(org.hibernate.boot.SessionFactoryBuilder sessionFactoryBuilder)
        Deprecated.
        Builds the actual SessionFactory from the builder.
        Parameters:
        sessionFactoryBuilder - The SessionFactoryBuilder
        Returns:
        The SessionFactory
      • createMetadataSources

        protected org.hibernate.boot.MetadataSources createMetadataSources​(@NonNull
                                                                           org.hibernate.boot.registry.StandardServiceRegistry serviceRegistry)
        Deprecated.
        Creates the MetadataSources for the given registry.
        Parameters:
        serviceRegistry - The registry
        Returns:
        The sources