title: spring-hibernate transaction- changes not reflecting?
body: <p>I am using Spring and Hibernate. I have a method annotated with <code>@Transactional</code>. This method has two database calls. One call would update the data in the table and the other call would retrieve some data from the same table based on the first call's updated data. 
  The problem is first call's database change is not reflected immediately. Change is reflected after the flow comes out of the method which is annotated with <code>@Transactional</code>. I still tried calling <code>session.flush()</code> but no use. Please suggest me.</p>
  
  <pre><code>@Transactional
  public void method1(){
  dao.updateM1();
  dao.getData();
  }
  </code></pre>