Skip to content

Spring Data documentation examples have wrong annotations #2234

Closed
@mdoninger

Description

@mdoninger

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).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions