EntityManagerFactory must not be null after migrate to hibernate 5.2.6 in spring boot
I using Hibernate in my Spring boot App after migrate from Hibernate 5.0.11 to 5.2.6.Final .i get EntityManagerFactory must not be null exception this is my codes My Hibernate Configuration @Configuration @EnableTransactionManagement public class DatabaseConfiguration { @Bean public HibernateJpaSessionFactoryBean sessionFactory() { return new HibernateJpaSessionFactoryBean(); } @Bean public HibernateTransactionManager transactionManager(@Autowired SessionFactory sessionFactory) { HibernateTransactionManager transactionManager = new HibernateTransactionManager(); transactionManager