From 8e7428cfafb69ae34c294828852582165912aae6 Mon Sep 17 00:00:00 2001 From: Otavio Santana Date: Mon, 9 Oct 2023 13:34:13 +0100 Subject: [PATCH] style: create break line in update annotation Signed-off-by: Otavio Santana --- api/src/main/java/jakarta/data/Update.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/api/src/main/java/jakarta/data/Update.java b/api/src/main/java/jakarta/data/Update.java index c1bf4eb2a..84153e436 100644 --- a/api/src/main/java/jakarta/data/Update.java +++ b/api/src/main/java/jakarta/data/Update.java @@ -34,7 +34,10 @@ *
  • An {@code Iterable} of entities to be updated.
  • *
  • An array of entities to be updated.
  • * - *

    The return type of the annotated method must be {@code void}, {@code boolean}, a numeric primitive type (such as {@code int}), or a corresponding primitive wrapper type (such as {@link Integer}). A boolean return type indicates whether a matching entity was found in the database to update. A numeric return type indicates how many matching entities were found in the database to update. + *

    The return type of the annotated method must be {@code void}, {@code boolean}, a numeric primitive type + * (such as {@code int}), or a corresponding primitive wrapper type (such as {@link Integer}). + * A boolean return type indicates whether a matching entity was found in the database to update. + * A numeric return type indicates how many matching entities were found in the database to update. *

    *

    Updating an entity involves modifying its existing data in the database. The method will search for the entity * in the database using its ID (and version, if versioned) and then update the corresponding record with the new data. After invoking