From 6ca606ab5ca8fcbfc3977b541a6ca3b01e6e70f3 Mon Sep 17 00:00:00 2001 From: Oliver Gierke Date: Mon, 18 Jul 2011 21:05:20 +0200 Subject: [PATCH] Polished reference documentation. --- src/docbkx/repositories.xml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/docbkx/repositories.xml b/src/docbkx/repositories.xml index e256e8d05..64fbcdb31 100644 --- a/src/docbkx/repositories.xml +++ b/src/docbkx/repositories.xml @@ -17,7 +17,7 @@ boilerplate code to implement repositories especially is still quite high. So the goal of the repository abstraction of Spring Data is to reduce the effort to implement data access layers for various persistence stores - significantly + significantly. The following chapters will introduce the core concepts and interfaces of Spring Data repositories. @@ -53,7 +53,8 @@ - public interface CrudRepository<T, ID extends Serializable> { + public interface CrudRepository<T, ID extends Serializable> + extends Repository<T, ID> { T save(T entity); @@ -110,7 +111,7 @@ PagingAndSortingRepository - public interface PagingAndSortingRepository<T, ID extends Serializable> extends Repository<T, ID> { + public interface PagingAndSortingRepository<T, ID extends Serializable> extends CrudRepository<T, ID> { Iterable<T> findAll(Sort sort); @@ -171,7 +172,7 @@ Page<User> users = repository.findAll(new PageRequest(1, 20);public class SomeClient { @Autowired - private PersonRepoyitory repository; + private PersonRepository repository; public void doSomething() { List<Person> persons = repository.findByLastname("Matthews"); @@ -264,7 +265,7 @@ interface UserRepository extends MyBaseRepository<User, Long> { from the query method's name. The general approach is to remove a given set of well-known prefixes from the method name and parse the rest of the method. Read more about query construction in . + linkend="repositories.query-methods.query-creation" />. @@ -502,8 +503,9 @@ List<User> findByLastname(String lastname, Pageable pageable); + support ship a persistence technology specific + RepositoryFactory that can be used as + follows: Standalone usage of repository factory