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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira