title: How to convert HQL to SQL Query programmatically (without logging)
body: <p>I am executing the following HQL and it is executing properly </p>
  
  <pre><code>String hql = "FROM Employee";
  Query query = session.createQuery(hql);
  List results = query.list();
  </code></pre>
  
  <p>Now, I also want to log the sql generated at the backend in logs for support users.</p>
  
  <p>I want to make use of QueryTranslator please advise how can I generate the sql for the corresponding HQL please advise how to achieve this.</p>