persist Or Update
Persist the given entity in the database or update it if it already exists.
Parameters
entity
the entity to update.
Persist all given entities or update them if they already exist.
Parameters
entities
the entities to update