Skip to content

Commit 316d0ce

Browse files
mdoningerschauder
authored andcommitted
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
1 parent dec2a43 commit 316d0ce

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/main/asciidoc/jpa.adoc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,6 @@ The following example shows how to reference a named entity graph on a repositor
655655
====
656656
[source, java]
657657
----
658-
@Repository
659658
public interface GroupRepository extends CrudRepository<GroupInfo, String> {
660659
661660
@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
671670
====
672671
[source, java]
673672
----
674-
@Repository
675673
public interface GroupRepository extends CrudRepository<GroupInfo, String> {
676674
677675
@EntityGraph(attributePaths = { "members" })

0 commit comments

Comments
 (0)