简体   繁体   中英

Batch updates in JPA (Toplink)

如果使用JPA Toplink执行批量更新(EntityManager persist()或merge())有什么办法吗?

如果要进行批量更新,可以创建使用EntityManager执行更新的查询(JPQL或Native SQL),然后对该查询调用executeUpdate

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM