开发者

How to do the BATCH insert in JPA?

开发者 https://www.devze.com 2023-04-05 01:45 出处:网络
I am using JPA with Hibernate persistence. We are using JPA in the following configurations. persistence-api 1.0 ver开发者_JAVA百科sion

I am using JPA with Hibernate persistence. We are using JPA in the following configurations.

persistence-api 1.0 ver开发者_JAVA百科sion
hibernate-core 3.3.2.GA version
hibernate-entitymanager 3.4.0.GA version

Is it possible to use Batch Insert in JPA with above configuration?

Please suggest how to do BATCH insert. We want to insert multiple rows in a single table without affecting performance of Database. Also suggest how many row insert is practically possible to use in batch?

Thanks in Anticipations


JPA itself does not have have specific support for batch insert. However, because you use Hibernate, take a look to: http://docs.jboss.org/hibernate/core/3.3/reference/en/html/batch.html

0

精彩评论

暂无评论...
验证码 换一张
取 消