I see what you mean.. In my second post I had moved on and said "I think above should work but in anycase if I change to AUTO id generation then I get this exception instead which is a unique violation on an alternate key for that table."
So I agree with your solution to fix the first post but I guess right now my problem is the second post with the unique key. -- View this message in context: http://openjpa.208410.n2.nabble.com/Duplicate-entry-issue-with-multithreaded-application-tp7580917p7581251.html Sent from the OpenJPA Users mailing list archive at Nabble.com.