title: JPA / @PostPersist @PostUpdate - transaction
body: <p>I am currently working with <code>@PostPersist</code> and <code>@PostUpdate</code>, and in those triggers I am persisting additional entities. The question is, are those triggers in the same transaction and if not is it possible to force it ?</p>
  
  <p>For me it works this way.
  While I was looking through the logs the transaction isn't existing ( it's commited just before the trigger is launched ) which prevents me ( without <code>REQUIRES_NEW</code>  on the persisting method from injected bean ) from saving the additional entities in database.
  <code>REQUIRED</code> attribute is totally ignored, and <code>MANDATORY</code> attribute do not throw an exception.</p>
  
  <p>Can it be the problem with JUnit ( since I am in the dev. phase and did not test the behavior on full env. ) ?</p>
  
  <p>If extending the transaction on this triggers is not possible, how to ensure that if the rollback occurs before the <code>@PostPersist</code> and <code>@PostUpdate</code>, those operations also will be rollbacked.</p>