diff --git a/src/docbkx/jpa.xml b/src/docbkx/jpa.xml index 8e7c4b409..258b4bf59 100644 --- a/src/docbkx/jpa.xml +++ b/src/docbkx/jpa.xml @@ -801,16 +801,15 @@ int setFixedFirstnameFor(String firstname, String lastname); This will trigger the query annotated to the method as updating query instead of a selecting one. As the EntityManager might contain outdated - entities after the execution of the modifying query, we automatically - clear it (see JavaDoc of + entities after the execution of the modifying query, we do not + automatically clear it (see JavaDoc of EntityManager.clear() - for details). This will effectively drop all non-flushed changes still - pending in the EntityManager. If you - don't wish the EntityManager to be - cleared automatically you can set - @Modifying annotation's - clearAutomatically attribute to - false; + for details) since this will effectively drop all non-flushed changes + still pending in the EntityManager. If + you wish the EntityManager to be cleared + automatically you can set @Modifying + annotation's clearAutomatically attribute to + true;
@@ -1132,7 +1131,8 @@ public interface UserRepository extends JpaRepository<User, Long> { orm.xml to be used for all entities in your persistence contexts: - Note that the auditing feature requires spring-aspects.jar to be on the classpath. + Note that the auditing feature requires + spring-aspects.jar to be on the classpath. Auditing configuration orm.xml