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