JPA : 區分 persist() 和 merge()

區別概述 persistjava Insert a new register to the database Attach the object to the entity manager. mergeweb Find an attached object with the same id and update it. If exists update and return the already
相關文章
相關標籤/搜索