Open GoogleCodeExporter opened 9 years ago
[deleted comment]
em.flush() just causes SQL statements to be sent to the database. It does not
commit the current transaction.
To convince yourself, run com.googlecode.jeeunit.example.test.AuthorTest after
adding em.flush() to LibraryService.createAuthor().
All this assumes you're running with container-managed transactions.
So it's really hard to tell what's causing the behaviour you've observed. Could
you try to provide a self-contained test case?
Original comment by hwellman...@gmail.com
on 9 Feb 2012 at 9:47
Original issue reported on code.google.com by
k...@heldig.org
on 6 Feb 2012 at 8:11