Class SessionFactoryProvider
java.lang.Object
ch.tocco.nice2.persist.core.impl.hibernate.bootstrap.SessionFactoryProvider
Factory bean which initializes the hibernate environment.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
configureBootstrapServiceRegistryBuilder
(org.hibernate.boot.registry.BootstrapServiceRegistryBuilder builder) org.hibernate.SessionFactory
void
setBootstrapContributions
(List<HibernateBootstrapContribution> bootstrapContributions) void
setLazyInitialization
(boolean lazyInitialization)
-
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)
-