title: Calling flush() in @Transactional method in Spring Boot application
body: <p>Is it possible that calling Hibernate flush() in the middle of @Transactional method will save incomplete results in the database?
  For example, is it possible that this function could save "John" to the database?</p>
  
  <pre><code>@Transactional
  public void tt() {
      Student s = new Student("John");
      em.persist(s);
      em.flush();
      // Perform some calculations that change some attributes of the instance
      s.setName("Jeff");
  }
  </code></pre>
  
  <p>I tried it with H2 in-memory database and it didn't save incomplete transaction changes. But is it possible under certain conditions and maybe with another DB engine?</p>