Uses of Class
org.springframework.orm.hibernate5.LocalSessionFactoryBuilder
Packages that use LocalSessionFactoryBuilder
-
Uses of LocalSessionFactoryBuilder in org.springframework.orm.hibernate5
Methods in org.springframework.orm.hibernate5 that return LocalSessionFactoryBuilderModifier and TypeMethodDescriptionLocalSessionFactoryBuilder.addAnnotatedClasses
(Class<?>... annotatedClasses) Add the given annotated classes in a batch.LocalSessionFactoryBuilder.addPackages
(String... annotatedPackages) Add the given annotated packages in a batch.LocalSessionFactoryBuilder.scanPackages
(String... packagesToScan) Perform Spring-based scanning for entity classes, registering them as annotated classes with thisConfiguration
.LocalSessionFactoryBuilder.setBeanContainer
(ConfigurableListableBeanFactory beanFactory) Set a HibernateBeanContainer
for the given SpringConfigurableListableBeanFactory
.LocalSessionFactoryBuilder.setCacheRegionFactory
(RegionFactory cacheRegionFactory) Set the HibernateRegionFactory
to use for the SessionFactory.LocalSessionFactoryBuilder.setEntityTypeFilters
(TypeFilter... entityTypeFilters) Specify custom type filters for Spring-based scanning for entity classes.LocalSessionFactoryBuilder.setJtaTransactionManager
(Object jtaTransactionManager) Set the SpringJtaTransactionManager
or the JTATransactionManager
to be used with Hibernate, if any.LocalSessionFactoryBuilder.setMultiTenantConnectionProvider
(MultiTenantConnectionProvider multiTenantConnectionProvider) Set aMultiTenantConnectionProvider
to be passed on to the SessionFactory.Methods in org.springframework.orm.hibernate5 with parameters of type LocalSessionFactoryBuilderModifier and TypeMethodDescriptionprotected SessionFactory
LocalSessionFactoryBean.buildSessionFactory
(LocalSessionFactoryBuilder sfb) Subclasses can override this method to perform custom initialization of the SessionFactory instance, creating it via the given Configuration object that got prepared by this LocalSessionFactoryBean.