From 1bee6004cb1b3d8d35f66747576a802cb2e67294 Mon Sep 17 00:00:00 2001 From: Mark Paluch Date: Mon, 21 Oct 2024 14:36:01 +0200 Subject: [PATCH] Polishing. Refine stored procedure documentation. See #1759 --- src/main/antora/modules/ROOT/pages/jpa/stored-procedures.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/antora/modules/ROOT/pages/jpa/stored-procedures.adoc b/src/main/antora/modules/ROOT/pages/jpa/stored-procedures.adoc index 8985be451..7eae20f79 100644 --- a/src/main/antora/modules/ROOT/pages/jpa/stored-procedures.adoc +++ b/src/main/antora/modules/ROOT/pages/jpa/stored-procedures.adoc @@ -69,7 +69,7 @@ Integer callPlus1InOut(Integer arg); ---- ==== -The following is again equivalent to the previous two but using the method name instead of an explicite annotation attribute. +The following is again equivalent to the previous two but using the method name instead of an explicit annotation attribute. .Referencing implicitly mapped named stored procedure "User.plus1" in `EntityManager` by using the method name. ==== @@ -94,4 +94,4 @@ Integer entityAnnotatedCustomNamedProcedurePlus1IO(@Param("arg") Integer arg); If the stored procedure getting called has a single out parameter that parameter may be returned as the return value of the method. If there are multiple out parameters specified in a `@NamedStoredProcedureQuery` annotation those can be returned as a `Map` with the key being the parameter name given in the `@NamedStoredProcedureQuery` annotation. - +NOTE: Note that if the stored procedure returns a `ResultSet` then any `OUT` parameters are omitted as Java can only return a single method return value.