From 980cadfc0ce2790a99d83541e16bdeecf7cb4343 Mon Sep 17 00:00:00 2001 From: Oliver Gierke Date: Thu, 23 Jun 2011 10:29:07 +0200 Subject: [PATCH] Fixed reference documentation section ids. --- src/docbkx/repositories.xml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/docbkx/repositories.xml b/src/docbkx/repositories.xml index 865dcc296..0b9adb48d 100644 --- a/src/docbkx/repositories.xml +++ b/src/docbkx/repositories.xml @@ -184,7 +184,7 @@ Page<User> users = repository.findAll(new PageRequest(1, 20); -
+
Defining repository interfaces As a very first step you define a domain class specific repository @@ -194,7 +194,7 @@ Page<User> users = repository.findAll(new PageRequest(1, 20);CrudRepository instead of Repository. -
+
Fine tuning repository definition Usually you will have your repository interface extend @@ -236,7 +236,7 @@ interface UserRepository extends MyBaseRepository<User, Long> {
-
+
Defining query methods
@@ -405,13 +405,13 @@ List<User> findByLastname(String lastname, Pageable pageable);
-
+
Creating repository instances So now the question is how to create instances and bean definitions for the repository interfaces defined. -
+
Spring The easiest way to do so is by using the Spring namespace that @@ -495,7 +495,7 @@ List<User> findByLastname(String lastname, Pageable pageable);
-
+
Standalone usage You can also use the repository infrastructure outside of a