I am getting the following error when using Hibernate:
\'hibernate.dialect\' must be set when no Connection available
And I am using a datasource fo
You will get this issue even if you have your configuration files having proper value but you don't configure it in the code.
I was explaining hibernate, I forgot to use configure()
before buildSessionFactory()
so I was getting the error.
You might want to recheck it.
Previous code which was giving me error
SessionFactory factory = new Configuration().buildSessionFactory();
Changed code No Error
SessionFactory factory = new Configuration().configure().buildSessionFactory();