Hibernate (Java) Question:

How do you switch between relational databases without code changes?

Hibernate Interview Question
Hibernate Interview Question

Answer:

Using Hibernate SQL Dialects , we can switch databases. Hibernate will generate appropriate hql queries based on the dialect defined.


Previous QuestionNext Question
What are the benefits does HibernateTemplate provide?If you want to see the Hibernate generated SQL statements on console, what should we do?