File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Object Relational Mapping and the fly likes JPA Batch Insert Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "JPA Batch Insert" Watch "JPA Batch Insert" New topic
Author

JPA Batch Insert

kish kumar
Ranch Hand

Joined: Jan 03, 2008
Posts: 54
Is JPA supports batch insert of multiple records? If so please let me know how it supports!
James Sutherland
Ranch Hand

Joined: Oct 01, 2007
Posts: 553
What do you mean by batch insert? Do you mean usage of the JDBC batch APIs?

There is nothing specific in the JPA spec for this, but most providers do support them.

For EclipseLink set the batch persistence unit property,

"eclipselink.jdbc.batch-writing"="JDBC"

TopLink : EclipseLink : Book:Java Persistence : Blog:Java Persistence Performance
kish kumar
Ranch Hand

Joined: Jan 03, 2008
Posts: 54
I am using jpa with hibernate combination . want to check if there is a specific JPA API available to insert bulk number of records in to the database.
kish kumar
Ranch Hand

Joined: Jan 03, 2008
Posts: 54
alas no one has answer
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JPA Batch Insert