[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-4596) Bulk insertion with assigned identifiers

Steve Ebersole (JIRA) noreply at atlassian.com
Fri Nov 20 14:26:08 EST 2009


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-4596?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=34701#action_34701 ] 

Steve Ebersole commented on HHH-4596:
-------------------------------------

The real condition here imo is whether the id is assigned and the query has explicitly specified the ID.  That still leaves potential for duplicate key errors, but oh well that's user error I guess.

> Bulk insertion with assigned identifiers
> ----------------------------------------
>
>                 Key: HHH-4596
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-4596
>             Project: Hibernate Core
>          Issue Type: Patch
>          Components: core
>    Affects Versions: 3.5.0-Beta-2
>         Environment: latest hibernate, but tracing this since batch processing inception
>            Reporter: Zoran Regvart
>         Attachments: assigned-bulk-insert.patch
>
>
> supportsIdGenWithBulkInsertion method of HqlSqlWalker explicitly checks if the id generator is either SequenceGenerator or PostInsertIdentifierGenerator, I think this could be extended to include Assigned id generator, attached is the patch for that

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list