Package io.micronaut.data.annotation
Annotation Interface Update
Lifecycle annotation for repository methods which perform update operations.
The Update
annotation indicates that the annotated repository method updates the state of one or more
entities already held in the database.
An Update
method accepts an instance or instances of an entity class. The method must
have exactly one parameter whose type is either:
- the class of the entity to be updated, or
List<E>
orE[]
whereE
is the class of the entities to be updated.
The annotated method must either be declared void
, or have a return type that is the same as the type of
its parameter.