delete

@CheckReturnValue
@GenerateBridge
open fun delete(query: String, vararg params: Any): Uni<Long>

Delete all entities of this type matching the given query, with optional indexed parameters.

WARNING: the default implementation of this method uses a bulk delete query and ignores cascading rules from the JPA model.

Return

the number of entities deleted.

See also

Parameters

query

a query string

params

optional sequence of indexed parameters


@CheckReturnValue
@GenerateBridge
open fun delete(query: String, params: Map<String, Any>): Uni<Long>

Delete all entities of this type matching the given query, with named parameters.

WARNING: the default implementation of this method uses a bulk delete query and ignores cascading rules from the JPA model.

Return

the number of entities deleted.

See also

Parameters

query

a query string

params

Map of named parameters


@CheckReturnValue
@GenerateBridge
open fun delete(query: String, params: Parameters): Uni<Long>

Delete all entities of this type matching the given query, with named parameters.

WARNING: the default implementation of this method uses a bulk delete query and ignores cascading rules from the JPA model.

Return

the number of entities deleted.

See also

Parameters

query

a query string

params

Parameters of named parameters