I am migrating hibernate 3.x to latest version 5.x and I see many issues that I need some help with.
- SessionFactory.evict() - My code uses SessionFactory.evict() which I don't see in 5.x. What should I replace this code with? HibernateTemplate.evict()?
- Changed AnnotationSessionFactoryBean to LocalSessionFactoryBean in spring config xml. AnnotationSessionFactoryBean had properties configurationClass and namingStrategy. What should these be replaced with?
- Class HibernateInterceptor is used in spring config xml and now it is not found in spring 4.x under hibernate5 package.
- ConnectionProvider.configure() is missing in Hibernate.
I am using, Spring - 4.3.9.RELEASE Hibernate - 5.2.10.Final