title: What to use Flush Mode 'Auto' or 'Commit'
body: <p>As my title described, I am using hibernate <code>Auto</code> flush mode mechanism in my application. So, when I change any data in a hibernate persistent object, it reflects automatically in the database. I don't want this. So I found a solution to use FlushMode <code>Commit</code> instead.</p>
  
  <p>So here is my actual question:</p>
  
  <ul>
  <li>Is it better to use <code>Commit</code> flush mode instead of <code>Auto</code>? and </li>
  <li><p>What is the meaning of this statement from the documentation? </p>
  
  <blockquote>
    <p>The Session is sometimes flushed before query execution in order
    to ensure that queries never return stale state.</p>
  </blockquote></li>
  </ul>
  
  <p><a href="http://docs.jboss.org/hibernate/orm/3.5/javadoc/org/hibernate/FlushMode.html" rel="noreferrer">http://docs.jboss.org/hibernate/orm/3.5/javadoc/org/hibernate/FlushMode.html</a></p>