title: Entity not getting saved after transaction commit
body: <p>Some background, I use JPA/Hibernaate/Spring in my web application I also use org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter and an extended persistence context to handle my entities. </p>
  
  <p>The problem:</p>
  
  <ol>
  <li><p>user clicks the edit link for an entity</p></li>
  <li><p>Entity is loaded from the database using find methods and entity gets stored in session</p></li>
  <li><p>user makes changes to entity and hits save</p></li>
  <li><p>user changes are reflected on the entity stored in session (in the controller)</p></li>
  <li><p>entity is sent to a method (annotated with @Transactional) in a service class</p></li>
  <li><p>no changes to the entity (or any other entity) happens in the service class (it does some other none persistence related stuff)</p></li>
  <li><p>no changes are flushed to the database after the service method is done!!!?</p></li>
  </ol>
  
  <p>NOTE: The service class is a spring component, I debugged the spring proxy created for it, when calling the service method annotated with @Transactional I saw spring create a NEW transaction before service method call and I also saw it commit the transaction successfully. From my understanding that even though the changes to the entity didn't happen in transaction boundaries it still should be flushed to the database. why is the changes are not being flushed?!</p>