Quantcast
Channel: JPA EntityManager: Why use persist() over merge()? - Stack Overflow
Viewing all articles
Browse latest Browse all 17

JPA EntityManager: Why use persist() over merge()?

$
0
0

EntityManager.merge() can insert new objects and update existing ones.

Why would one want to use persist() (which can only create new objects)?


Viewing all articles
Browse latest Browse all 17

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>