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