[hibernate-issues] [Hibernate-JIRA] Created: (HHH-3462) Insert multiple records at a time in a table or a single DB call

Tannya Prakash (JIRA) noreply at atlassian.com
Thu Sep 4 06:36:04 EDT 2008


Insert multiple records at a time in a table or a single DB call
----------------------------------------------------------------

                 Key: HHH-3462
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3462
             Project: Hibernate3
          Issue Type: Improvement
          Components: query-criteria
    Affects Versions: 3.0 final
         Environment: Hibernate 3, Oracle 10g
            Reporter: Tannya Prakash


I want to insert multiple records in a DB table in a single insert statement, i.e. I just want to have a single call to the DB for inserting the records. I want to use something similar to SQL INSERT ALL statement. 

However, I want that hibernate should generate this query for me. I am not willing to mention the query in my hibernate.cfg. Is there any way to achieve this?

I am able to generate multiple inserts for records but then, hibernate shows me insert query for all the record and I want to do it in a single database call. I am using a DAO class for all the CRUD operations.

-- 
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