persistOrUpdate

open fun persistOrUpdate(entity: Entity): Uni<Entity>

Persist the given entity in the database or update it if it already exists.

Parameters

entity

the entity to update.


open fun persistOrUpdate(entities: Iterable<Entity>): Uni<Void>
open fun persistOrUpdate(entities: Stream<Entity>): Uni<Void>
open fun persistOrUpdate(firstEntity: Entity, vararg entities: Entity): Uni<Void>

Persist all given entities or update them if they already exist.

Parameters

entities

the entities to update