This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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
 
wood burning stoves
 
subject: JPA Batch Insert
 
Similar Threads
EJB-Ql vs HQL
Is it possible to use JPA 2.0 with EJB 3.0? (not EJB 3.1)?
Batch Update in Hibernate
JPA Annotations
batch processing - Hibernate Vs JDBC ?