Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-users] JDBC batch writing and native queries: flush() doesn't work

Hi,

it seems that when JDBC batch writing mode has been enabled, a flush() won't trigger the execution of the "saved" statement under certain circumstances:

Steps to reproduce this:

0. enable batch writing in mode "JDBC"
1. create an EntityManager
2. create and execute a native query which consists of a simple insert
3. call flush() on the entity manager.

=> Nothing will be written to the database. It seems that the changes will only be persisted when commiting the transaction.

Is this a "feature" (and not a bug) and is there a workaround for this problem? (except disabling jdbc batch writing).

Thank you.

Best regards,
Patric






Back to the top