HibernateException: Access to DialectResolutionInfo cannot be null when ‘hibernate.dialect’ not set

It could be because you are using a custom HibernateSessionFactoryBean and you are not propagating the Hibernate properties as they should:

com.company.hibernate.CustomHibernateSessionFactoryBean