title: Does hibernate use PreparedStatement by default
body: <p>"Hibernate always uses PreparedStatement for calls to the database" Quoted <a href="https://community.jboss.org/wiki/HibernateFAQ-PerformanceQA/diff?secondVersionNumber=3" rel="noreferrer">here</a>.
  If so then where does hibernate cache compiled queries, does DB driver cache them.</p>
  
  <p>I read about c3p0. If hibernate caches PreparedStatement  by default then what is the use of hibernate.c3p0.max_statements in c3p0.
  If hibernate does not do it by default then is connection pooling mandatory for caching prepared statements.</p>
  
  <p>Could somebody please clarify these.</p>