save abstract method

Future<E> save(
  1. E entity
)

Saves the given entity to the database.

If the entity is not persistent, it will be inserted. If it is already persistent and has been modified, it will be updated.

Returns the saved entity, which is typically a ManagedEntity wrapper.

Implementation

Future<E> save(E entity);