From 30b0e5e250e94bf1f1da957506155db114591728 Mon Sep 17 00:00:00 2001 From: Chris Beams Date: Sat, 7 Aug 2010 13:57:01 +0000 Subject: [PATCH] Improve explanation re DAOs and persistence resources (SPR-7339) --- spring-framework-reference/src/dao.xml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/spring-framework-reference/src/dao.xml b/spring-framework-reference/src/dao.xml index 5ee0482694..ccf99a2018 100644 --- a/spring-framework-reference/src/dao.xml +++ b/spring-framework-reference/src/dao.xml @@ -81,9 +81,12 @@ public class SomeMovieFinder implements MovieFinder { } - Any DAO or repository need to access to a persistence resource, - depending on the persistence technology used. The easiest way to - accomplish this is to have this resource dependency injected using one of + Any DAO or repository implementation will need to access to a + persistence resource, depending on the persistence technology used; for + example, a JDBC-based repository will need access to a JDBC + DataSource; a JPA-based repository will need + access to an EntityManager. The easiest way + to accomplish this is to have this resource dependency injected using one of the @Autowired, @Resource or @PersistenceContext annotations. Here is an -- GitLab