From 7cdc8fe120d855fae7df8a42ab1f31eec8d43753 Mon Sep 17 00:00:00 2001 From: Manuel Doninger Date: Tue, 15 Jun 2021 10:56:35 +0200 Subject: [PATCH] Remove superfluous @Repository annotation from examples. Remove the @Repository annotation from interfaces in the examples, since it is not necessary on Spring Data interfaces (and creates a warning log anyway). Closes #2234 Original pull request #2235 --- src/main/asciidoc/jpa.adoc | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/main/asciidoc/jpa.adoc b/src/main/asciidoc/jpa.adoc index ad5fc7918..c8bc6e958 100644 --- a/src/main/asciidoc/jpa.adoc +++ b/src/main/asciidoc/jpa.adoc @@ -655,7 +655,6 @@ The following example shows how to reference a named entity graph on a repositor ==== [source, java] ---- -@Repository public interface GroupRepository extends CrudRepository { @EntityGraph(value = "GroupInfo.detail", type = EntityGraphType.LOAD) @@ -671,7 +670,6 @@ It is also possible to define ad hoc entity graphs by using `@EntityGraph`. The ==== [source, java] ---- -@Repository public interface GroupRepository extends CrudRepository { @EntityGraph(attributePaths = { "members" })