diff --git a/src/docbkx/appendix/faq.xml b/src/docbkx/appendix/faq.xml
index 26ba485e4..101e5e3bc 100644
--- a/src/docbkx/appendix/faq.xml
+++ b/src/docbkx/appendix/faq.xml
@@ -29,7 +29,7 @@
<aop:config>
<aop:advisor advice-ref="customizableTraceInterceptor"
- pointcut="execution(public * org.sfw.data.jpa.repository.JpaRepository+.*(..))"/>
+ pointcut="execution(public * org.springframework.data.jpa.repository.JpaRepository+.*(..))"/>
</aop:config>
@@ -62,8 +62,7 @@
<bean class="com.acme.YourDaoBasedOnHibernateDaoSupport">
<property name="sessionFactory">
- <bean factory-bean="entityManagerFactory"
- factory-method="getSessionFactory" />
+ <bean factory-bean="entityManagerFactory" factory-method="getSessionFactory" />
</property>
</bean>
@@ -89,4 +88,4 @@
-
\ No newline at end of file
+
diff --git a/src/docbkx/reference/jpa.xml b/src/docbkx/reference/jpa.xml
index a8720dc8e..7d0771386 100644
--- a/src/docbkx/reference/jpa.xml
+++ b/src/docbkx/reference/jpa.xml
@@ -98,7 +98,7 @@
The Spring Data JPA repositories support cannot only be activated
through an XML namespace but also using an annotation through
- JavaConfig.
+ JavaConfig.
Spring Data JPA repositories using JavaConfig
@@ -319,16 +319,16 @@ class ApplicationConfig {
findByFirstnameStartingWith
… where x.firstname like ?1 (parameter
- bound with prepended %)
+ bound with appended %)
- ngWith
+ EndingWith
findByFirstnameEndingWith
… where x.firstname like ?1 (parameter
- bound with appended %)
+ bound with prepended %)
@@ -641,10 +641,10 @@ int setFixedFirstnameFor(String firstname, String lastname);
The additional interface carries methods that allow you to execute
Specifications in a variety of ways.
- For example, the readAll method will return all
+ For example, the findAll method will return all
entities that match the specification:
- List<T> readAll(Specification<T> spec);
+ List<T> findAll(Specification<T> spec);
The Specification interface is as
follows:
@@ -716,7 +716,7 @@ int setFixedFirstnameFor(String firstname, String lastname);
Combined Specifications
MonetaryAmount amount = new MonetaryAmount(200.0, Currencies.DOLLAR);
-List<Customer> customers = customerRepository.readAll(
+List<Customer> customers = customerRepository.findAll(
where(isLongTermCustomer()).or(hasSalesOfMoreThan(amount)));As
you can see, Specifications offers some glue-code
methods to chain and combine
@@ -784,7 +784,7 @@ class UserManagementImpl implements UserManagement {
Role role = roleRepository.findByName(roleName);
- for (User user : userRepository.readAll()) {
+ for (User user : userRepository.findAll()) {
user.addRole(role);
userRepository.save(user);
}