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
This commit is contained in:
committed by
Jens Schauder
parent
a9dfa2a25a
commit
7cdc8fe120
@@ -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
|
||||
====
|
||||
[source, java]
|
||||
----
|
||||
@Repository
|
||||
public interface GroupRepository extends CrudRepository<GroupInfo, String> {
|
||||
|
||||
@EntityGraph(attributePaths = { "members" })
|
||||
|
||||
Reference in New Issue
Block a user