I'm not sure about what's the correct message to invoke the persistence of an entity in my sequence diagrams. I'm using the Cade/Sheil model in which the persistence is realized by an invocation message "persist" to EntityManager (JPA).
My questions are...
If the object (maybe) already persisted... I must use another message like "merge"?
Can I use "persist" as a generic method for new or already existing objects?
Check with the object Id with that of database Id if it is available you will get entity object and on the entity object use merge, if it is not available create the object, send it as persists to create a new.