You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Albert Lee (Resolved) (JIRA)" <ji...@apache.org> on 2012/04/11 21:11:16 UTC

[jira] [Resolved] (OPENJPA-2170) Multiple INSERT of the same row in batch update manager

     [ https://issues.apache.org/jira/browse/OPENJPA-2170?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Albert Lee resolved OPENJPA-2170.
---------------------------------

    Resolution: Fixed
    
> 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