Hi, What's the difference between merge() and persist()?
They both add the entity to the persistence context; both will insert the entity if necessary. merge() seems to insert/update as necessary. If so, then why would I ever need persist() since merge() can do everything it can do? Also, is remove() supposed to remove the entity from the database, the persistence context or both?
