title: Dialect in Hibernate
body: <p>Hibernate is database independent. So, whatever database we will use in our application, we need to set <strong>dialect</strong> related to that database.</p>
  
  <p>For Example, suppose we are using MySQL database, then we need below dialect:
  org.hibernate.dialect.MySQLDialect</p>
  
  <p>Suppose we are using SQL Server database, then we need below dialect:
  org.hibernate.dialect.SQLServerDialect</p>
  
  <p>Hibernate will generate appropriate query related to that database. <strong>My question is that Which mechanism used by hibernate to generate query based on database?</strong></p>