Browse Source

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
2.3.x
Manuel Doninger 5 years ago committed by Jens Schauder
parent
commit
7cdc8fe120
No known key found for this signature in database
GPG Key ID: 45CC872F17423DBF
  1. 2
      src/main/asciidoc/jpa.adoc

2
src/main/asciidoc/jpa.adoc

@ -655,7 +655,6 @@ The following example shows how to reference a named entity graph on a repositor @@ -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<GroupInfo, String> {
@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 @@ -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<GroupInfo, String> {
@EntityGraph(attributePaths = { "members" })

Loading…
Cancel
Save