3 Replies Latest reply on Aug 18, 2005 9:28 PM by epbernard

    What is the Difference Between Merge and Persist?

    mduffy_lists

      In a basic sense it seems that

      persist = INSERT
      merge = UPDATE

      In practice, a new entity that contains a detached entity cannot be persisted (exception: detached entity passed to persist:); however, a new entity that contains a detached entity can be merged.

      I haven't tried it, but it seems that a new entity that does not contain a detached entity could also be merged. So in practice, why not forget about persist and just use merge?

      Thx.

      Mike