Skip to content

Commit d6735c1

Browse files
committed
DATAJPA-850 - Polishing.
Original pull request: #163.
1 parent a542ff1 commit d6735c1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/asciidoc/jpa.adoc

+4-4
Original file line numberDiff line numberDiff line change
@@ -728,8 +728,6 @@ include::{spring-data-commons-docs}/auditing.adoc[]
728728

729729
Spring Data JPA ships with an entity listener that can be used to trigger capturing auditing information. So first you have to register the `AuditingEntityListener` inside your `orm.xml` to be used for all entities in your persistence contexts:
730730

731-
Note that the auditing feature requires `spring-aspects.jar` to be on the classpath.
732-
733731
.Auditing configuration orm.xml
734732
====
735733
[source, xml]
@@ -757,7 +755,9 @@ public class MyEntity {
757755
----
758756
====
759757

760-
Now activating auditing functionality is just a matter of adding the Spring Data JPA `auditing` namespace element to your configuration:
758+
Note that the auditing feature requires `spring-aspects.jar` to be on the classpath.
759+
760+
With that in place, activating auditing functionality is just a matter of adding the Spring Data JPA `auditing` namespace element to your configuration:
761761

762762
.Activating auditing using XML configuration
763763
====
@@ -785,7 +785,7 @@ class Config {
785785
----
786786
====
787787

788-
If you expose a bean of type AuditorAware to the ApplicationContext, the auditing infrastructure will pick it up automatically and use it to determine the current user to be set on domain types. If you have multiple implementations registered in the ApplicationContext, you can select the one to be used by explicitly setting the `auditorAwareRef` attribute of @EnableJpaAuditing.
788+
If you expose a bean of type `AuditorAware` to the `ApplicationContext`, the auditing infrastructure will pick it up automatically and use it to determine the current user to be set on domain types. If you have multiple implementations registered in the `ApplicationContext`, you can select the one to be used by explicitly setting the `auditorAwareRef` attribute of `@EnableJpaAuditing`.
789789

790790
[[jpa.misc]]
791791
= Miscellaneous

0 commit comments

Comments
 (0)