remove

@Suspendable
abstract fun remove(entity: Any)

Removes a single entity from the persistence context in a transaction.

Parameters

entity

The entity to remove.

Throws

If entity is a primitive type.

If an error occurs during execution.


@Suspendable
abstract fun remove(entities: List<Any>)

Removes multiple entities from the persistence context in a single transaction.

Parameters

entities

List of entities to be removed.

Throws

If entities contains any primitive types.

If an error occurs during execution.