Upsertable.upsert() (inherited by Persistable, i.e. entity types)


#1

upsert() is a hybrid of update() and create(). It will create the object if it does not exist and will update the object if it does exist.