From adbaf621824d47a20ed7dd05c0cb81f7e7bc64c1 Mon Sep 17 00:00:00 2001 From: Oliver Drotbohm Date: Sun, 19 Mar 2023 12:43:26 +0100 Subject: [PATCH] Clarification on the the term CRUD methods in reference documentation. Fixes #2792. --- src/main/asciidoc/repositories.adoc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/asciidoc/repositories.adoc b/src/main/asciidoc/repositories.adoc index 61144674f..ee9588011 100644 --- a/src/main/asciidoc/repositories.adoc +++ b/src/main/asciidoc/repositories.adoc @@ -21,7 +21,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`] interface provides sophisticated CRUD functionality for the entity class that is being managed. @@ -55,6 +55,8 @@ public interface CrudRepository extends Repository { <6> Indicates whether an entity with the given ID exists. ==== +The methods declared in this interface are commonly referred to as CRUD methods. + NOTE: We also provide persistence technology-specific abstractions, such as `JpaRepository` or `MongoRepository`. Those interfaces extend `CrudRepository` and expose the capabilities of the underlying persistence technology in addition to the rather generic persistence technology-agnostic interfaces such as `CrudRepository`.