[Solved] HibernateException: Access to DialectResolutionInfo cannot be null when ‘hibernate.dialect’ not setI was following Hibernate Official Documentation to create a basic hibernate application with version 4.3.5.Final and when I executed the application, I get It took me long time to solve the problem and it turned out to be with the way
And I was getting following stack trace:
From the logs its clear that Configuration class was able to find the hibernate configuration file and it has After some research and debugging, I was able to fix it. The part that is missing in the official documentation is that we need to apply the configuration properties to
Hibernate is still evolving and every version comes with a lot of changes and I feel that documentation part is lagging. I hope this will help someone fixing the issue rather than wasting a lot of time debugging. |
|
来自: 蹇胜雄 > 《hibernate》