title: Does a Hibernate transaction rollback delete "session.flush()"ed entities?
body: <p>I have been confused about <code>transaction.rollback</code>. Here is example pseudocode: </p>
  
  <pre><code>transaction = session.beginTransaction()    
  EntityA a = new EntityA();    
  session.save(a);    
  session.flush();    
  transaction.rollback();
  </code></pre>
  
  <p>What happens when this code works? Do I have the entity in the database or not?</p>