Uses of Class
org.springframework.orm.hibernate5.LocalSessionFactoryBuilder
Packages that use LocalSessionFactoryBuilder
- 
Uses of LocalSessionFactoryBuilder in org.springframework.orm.hibernate5Methods 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 HibernateBeanContainerfor the given SpringConfigurableListableBeanFactory.LocalSessionFactoryBuilder.setCacheRegionFactory(RegionFactory cacheRegionFactory) Set the HibernateRegionFactoryto 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 SpringJtaTransactionManageror the JTATransactionManagerto be used with Hibernate, if any.LocalSessionFactoryBuilder.setMultiTenantConnectionProvider(MultiTenantConnectionProvider multiTenantConnectionProvider) Set aMultiTenantConnectionProviderto be passed on to the SessionFactory.Methods in org.springframework.orm.hibernate5 with parameters of type LocalSessionFactoryBuilderModifier and TypeMethodDescriptionprotected SessionFactoryLocalSessionFactoryBean.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.