问题
Is there any way if executing batch updates (EntityManager persist() or merge()) using JPA Toplink?
回答1:
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.
来源:https://stackoverflow.com/questions/7365325/batch-updates-in-jpa-toplink