Announcement Announcement Module
Collapse
No announcement yet.
Batch insert/update query in Spring-JPA application Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Batch insert/update query in Spring-JPA application

    I am using JPA 1.0 in my spring based web application. I have an enity list which is to be inserted/updated as a batch. I know,

    PreparedStatement ps = ...
    for (....) {
    ps.setString(..);
    ps.addBatch();
    }

    ps.executeBatch();


    I want to know if there exists any way to get the preparedStament object from Spring's JPATemplate or any alternate way

  • #2
    This isn't a question about Spring Batch, it's about batch inserts using Spring Core's features. Please post you're question there.

    Comment

    Working...
    X