title: JPA - How to truncate tables between unit tests
body: <p>I want to cleanup the database after every test case without rolling back the transaction. I have tried DBUnit's <a href="http://www.dbunit.org/components.html#databaseoperation" rel="noreferrer">DatabaseOperation.DELETE_ALL</a>, but it does not work if a deletion violates a foreign key constraint. I know that I can disable foreign key checks, but that would also disable the checks for the tests (which I want to prevent).</p>
  
  <p>I'm using JUnit 4, JPA 2.0 (Eclipselink), and Derby's in-memory database. Any ideas?</p>
  
  <p>Thanks, 
  Theo</p>