From 34dc9ff09f50fe7dcaad45161c09c80b246e7a03 Mon Sep 17 00:00:00 2001 From: Mark Paluch Date: Wed, 23 Mar 2016 11:20:43 +0100 Subject: [PATCH] DATAJPA-876 - Add documentation for projections using query methods. Fix typo along the way. Original Pull Request: #167 --- src/main/asciidoc/jpa.adoc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/asciidoc/jpa.adoc b/src/main/asciidoc/jpa.adoc index 8342ab10b..8af19d339 100644 --- a/src/main/asciidoc/jpa.adoc +++ b/src/main/asciidoc/jpa.adoc @@ -445,6 +445,8 @@ public interface GroupRepository extends CrudRepository { ---- ==== +include::{spring-data-commons-docs}/repository-projections.adoc[leveloffset=+2] + [[jpa.stored-procedures]] == Stored procedures The JPA 2.1 specification introduced support for calling stored procedures via the JPA criteria query API. We Introduced the `@Procedure` annotation for declaring stored procedure metadata on a repository method. @@ -458,7 +460,7 @@ DROP procedure IF EXISTS plus1inout /; CREATE procedure plus1inout (IN arg int, OUT res int) BEGIN ATOMIC - set res = arg ` 1; + set res = arg + 1; END /; ----