persistAndFlush

open fun persistAndFlush(entity: Entity)

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

See also

Parameters

entity

the entity to persist.