title: Hibernate display query in the console
body: <p>I am trying to see the sql queries that are executed by hibernate, so I have:</p>
  
  <pre><code>AnnotationConfiguration hibernateConfig = new AnnotationConfiguration();
  ...//configuring the data url, user, etc.
  hibernateConfig.setProperty("show_sql", "true");
  hibernateConfig.setProperty("format_sql", "true");
  </code></pre>
  
  <p>It is hard to find the correct property names, so I used the same name as I would use in the xml file, but I don't find any outputs to the log.</p>
  
  <p>Is it anything else that I need to do, besides adding the above two lines?</p>