i even switched from autoincrement-ID to a ID-Table (i read somewhere that batch writing only works with table or sequence id-generation)
in my code i have 2 persists (in one transaction) in one transaction and eclipselink always generates always 4 insert-statements (2 Tables 1:1 relation).
So how to get it work? What settings in persistence.xml are needed? how to bundle inserts in code? and are there restrictions to database design to get batch writing enabled?