spring-data-jpa icon indicating copy to clipboard operation
spring-data-jpa copied to clipboard

Spring Data documentation examples have wrong annotations

Open mdoninger opened this issue 5 years ago • 0 comments

The examples 76 and 77 at https://docs.spring.io/spring-data/jpa/docs/current/reference/html/#jpa.entity-graph show the @Repository annotation on a Spring Data interface, which (to my knowledge) is not necessary on such interfaces. Nonetheless there are a lot of people who add that annotation, and use then such examples as a reason why (unless the technical requirements in Spring Data have changed and that annotation is now necessary on interfaces, although then there are other examples in the documentation, which don't have that annotation on a Spring Data interface, so it should be unified anyway).

mdoninger avatar Jun 15 '21 05:06 mdoninger