remove
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.
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.