Multiple INSERT of the same row in batch update manager
-------------------------------------------------------
Key: OPENJPA-2170
URL: https://issues.apache.org/jira/browse/OPENJPA-2170
Project: OpenJPA
Issue Type: Bug
Components: jdbc
Affects Versions: 2.2.0, 2.3.0
Reporter: Albert Lee
Assignee: Albert Lee
Priority: Minor
Fix For: 2.3.0
When trying to persist multiple different entities to the data base using the
batching update manager, if an INSERT failed, the update manager will
erroronously attempt to INSERT the same row to the database again. E.g.
em.persist(entity_type_1_id_1); // failed with a SQLException on INSERT
em.persist(entity_type_2_id_2);
em.flush();
will cause 2 insert of :
INSERT ENTITY_TYPE_1 ...... WHERE ID="ID_1"
Failed with an SQLException and insert the same row again.
INSERT ENTITY_TYPE_1 ...... WHERE ID="ID_1"
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira