persistAndFlush

@CheckReturnValue
open fun persistAndFlush(entity: Entity): Uni<Entity>

Persist the given entity in the database, if not already persisted. Then flushes all pending changes to the database.

Return

the entity

See also

Parameters

entity

the entity to persist.