I am upgrading hibernate from 3 to 5.1.15
For DB test, we are using the following session factory configuration.
I am getting Null exception.
I found RegionFactoryCacheProviderBridge was available in hibernate 3 but not in 4 or 5.
https://docs.jboss.org/hibernate/core/3.6/javadocs/index.html?overview-summary.html
https://docs.jboss.org/hibernate/orm/4.1/javadocs/
https://docs.jboss.org/hibernate/orm/5.1/javadocs/
It is not mentioned as deprecated and is missing.
<bean id="hibernateSessionFactory" class="com.company.product.CustomHibernateSessionFactoryBean">
<property name="hibernateProperties">
<value>
hibernate.id.new_generator_mappings=true
hibernate.cache.use_second_level_cache=true
hibernate.cache.use_query_cache=false
hibernate.cache.provider_class=org.hibernate.cache.HashtableCacheProvider
hibernate.cache.region.factory_class=org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBridge
hibernate.generate_statistics=true
hibernate.cache.use_structured_entries=true
</value>
</property>
<property name="packagesToScan" value="com.company.product.entity"/>
<property name="dataSource" ref="dataSource"/>
</bean>
- What class should i use for DBtest in replacement for that ?
- What is the workaround for this ?
- Any recommended settings for DBtest ?