Loading

Tag Archives: inefficient

OpenJPA: Generated SQL contains extra UPDATEs

I’m trying to use OpenJPA to insert some entries in the database and I’m getting a strange number of UPDATEs beside the INSERTs.
I isolated the problem to the following snippet of code

private void start() {
EntityManagerFactory emf = Persistence.createEntityManagerFactory("persistencexmltest1PU");
[...]