title: Which FlushMode in Hibernate commits when you call session.flush()?
body: <p>I read that whether a call to <code>session.flush()</code> commits or not depends on the <code>FlushMode</code> that is set. However, I don't know which <code>FlushMode</code> does this. I want the session to be flushed and commited. Which FlushMode should I use?</p>