Batch updates in JPA (Toplink)
Is there any way if executing batch updates (EntityManager persist() or merge()开发者_JAVA百科) using JPA Toplink?
If you want to do a batch update, you can create a Query (either JPQL or Native SQL) that performs the update using the EntityManager, and then call executeUpdate on that query.
精彩评论