From 1a2f96000ea16d7635a9d95e2b20b9664da44ff1 Mon Sep 17 00:00:00 2001 From: Keith Donald Date: Tue, 13 Sep 2011 14:31:41 +0000 Subject: [PATCH] clarified repository definition from DDD and removed comparison with DAO to reduce confusion --- .../main/java/org/springframework/stereotype/Repository.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/org.springframework.context/src/main/java/org/springframework/stereotype/Repository.java b/org.springframework.context/src/main/java/org/springframework/stereotype/Repository.java index a31069b7346..d97c7b23f55 100644 --- a/org.springframework.context/src/main/java/org/springframework/stereotype/Repository.java +++ b/org.springframework.context/src/main/java/org/springframework/stereotype/Repository.java @@ -23,7 +23,9 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** - * Indicates that an annotated class is a "Repository" (or "DAO"). + * Indicates that an annotated class is a "Repository", + * "a mechanism for encapsulating storage, retrieval, + * and search behaviour which emulates a collection of objects”. * *

A class thus annotated is eligible for Spring * {@link org.springframework.dao.DataAccessException} translation. The