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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JPA Batch Insert
 
Similar Threads
EJB-Ql vs HQL
JPA Annotations
batch processing - Hibernate Vs JDBC ?
Batch Update in Hibernate
Is it possible to use JPA 2.0 with EJB 3.0? (not EJB 3.1)?