Skip to content

Commit

Permalink
Clarification on the the term CRUD methods in reference documentation.
Browse files Browse the repository at this point in the history
Fixes #2792.
  • Loading branch information
odrotbohm committed Mar 19, 2023
1 parent 2564f6a commit 77de8aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/asciidoc/repositories.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ For detailed information on the specific features of your module, see the chapte
== Core concepts

The central interface in the Spring Data repository abstraction is `Repository`.
It takes the domain class to manage as well as the ID type of the domain class as type arguments.
It takes the domain class to manage as well as the identifier type of the domain class as type arguments.
This interface acts primarily as a marker interface to capture the types to work with and to help you to discover interfaces that extend this one.
The https://docs.spring.io/spring-data/commons/docs/current/api/org/springframework/data/repository/CrudRepository.html[`CrudRepository`] and https://docs.spring.io/spring-data/commons/docs/current/api/org/springframework/data/repository/ListCrudRepository.html[`ListCrudRepository`] interfaces provide sophisticated CRUD functionality for the entity class that is being managed.

Expand Down Expand Up @@ -62,6 +62,7 @@ public interface CrudRepository<T, ID> extends Repository<T, ID> {
<6> Indicates whether an entity with the given ID exists.
====

The methods declared in this interface are commonly referred to as CRUD methods.
`ListCrudRepository` offers equivalent methods, but they return `List` where the `CrudRepository` methods return an `Iterable`.

NOTE: We also provide persistence technology-specific abstractions, such as `JpaRepository` or `MongoRepository`.
Expand Down

0 comments on commit 77de8aa

Please sign in to comment.