diff --git a/src/docbkx/repositories.xml b/src/docbkx/repositories.xml
index 75298341f..564b8cc6b 100644
--- a/src/docbkx/repositories.xml
+++ b/src/docbkx/repositories.xml
@@ -20,7 +20,9 @@
significantly.
The following chapters will introduce the core concepts and
- interfaces of Spring Data repositories.
+ interfaces of Spring Data repositories in general for detailled
+ information on the specific features of a particular store consult the
+ later chapters of this document.
@@ -123,7 +125,7 @@
Accessing the second page of User by a page
size of 20 you could simply do something like this:
- PagingAndSortingRepository<User, Long> repository = // … get access to a bean
+ PagingAndSortingRepository<User, Long> repository = // … get access to a bean
Page<User> users = repository.findAll(new PageRequest(1, 20);
@@ -165,6 +167,14 @@ Page<User> users = repository.findAll(new PageRequest(1, 20);
+
+
+ Note that we use the JPA namespace here just by example. If
+ you're using the repository abstraction for any other store you need
+ to change this to the appropriate namespace declaration of your
+ store module which should be exchanging jpa in favor of
+ e.g. mongodb.
+
@@ -215,7 +225,7 @@ Page<User> users = repository.findAll(new PageRequest(1, 20);
Selectively exposing CRUD methods
- interface MyBaseRepository<T, ID extends Serializable> extends Repository<T, ID> {
+ interface MyBaseRepository<T, ID extends Serializable> extends Repository<T, ID> {
T findOne(ID id);
T save(T entity);
}
@@ -512,7 +522,7 @@ List<User> findByLastname(String lastname, Pageable pageable);
Standalone usage of repository factory
- RepositoryFactorySupport factory = … // Instantiate factory here
+ RepositoryFactorySupport factory = … // Instantiate factory here
UserRepository repository = factory.getRepository(UserRepository.class);
@@ -976,4 +986,4 @@ public class UserController {
-
\ No newline at end of file
+