Skip to content

Commit 34dc9ff

Browse files
mp911dechristophstrobl
authored andcommitted
DATAJPA-876 - Add documentation for projections using query methods.
Fix typo along the way. Original Pull Request: #167
1 parent 7e94c6b commit 34dc9ff

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/asciidoc/jpa.adoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,8 @@ public interface GroupRepository extends CrudRepository<GroupInfo, String> {
445445
----
446446
====
447447

448+
include::{spring-data-commons-docs}/repository-projections.adoc[leveloffset=+2]
449+
448450
[[jpa.stored-procedures]]
449451
== Stored procedures
450452
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
458460
/;
459461
CREATE procedure plus1inout (IN arg int, OUT res int)
460462
BEGIN ATOMIC
461-
set res = arg ` 1;
463+
set res = arg + 1;
462464
END
463465
/;
464466
----

0 commit comments

Comments
 (0)