Class SessionFactoryProvider

java.lang.Object
ch.tocco.nice2.persist.core.impl.hibernate.bootstrap.SessionFactoryProvider

@Configuration public class SessionFactoryProvider extends Object
Factory bean which initializes the hibernate environment.
  • Constructor Details

    • SessionFactoryProvider

      public SessionFactoryProvider()
  • Method Details

    • setBootstrapContributions

      @Autowired public void setBootstrapContributions(List<HibernateBootstrapContribution> bootstrapContributions)
    • setLazyInitialization

      @Value("${spring.main.lazy-initialization}") public void setLazyInitialization(boolean lazyInitialization)
    • sessionFactory

      @Bean public org.hibernate.SessionFactory sessionFactory()
    • configureBootstrapServiceRegistryBuilder

      protected void configureBootstrapServiceRegistryBuilder(org.hibernate.boot.registry.BootstrapServiceRegistryBuilder builder)