Skip to content

Commit 0397b8d

Browse files
christophstroblschauder
authored andcommitted
Update Auditing Documentation to latest changes.
Original pull request #3384 See #3383
1 parent 64a53db commit 0397b8d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/antora/modules/ROOT/pages/auditing.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ class Customer {
3434
As you can see, the annotations can be applied selectively, depending on which information you want to capture.
3535
The annotations, indicating to capture when changes are made, can be used on properties of type JDK8 date and time types, `long`, `Long`, and legacy Java `Date` and `Calendar`.
3636

37+
The time giving instance is provided by a `org.springframework.data.auditing.DateTimeProvider`, defaulting to `CurrentDateTimeProvider`, unless configured via the `dateTimeProviderRef` attribute when enabling auditing, or a dedicated `AuditingHandler` respectively `DateTimeProvider` bean being present in the `ApplicationContext`.
38+
3739
Auditing metadata does not necessarily need to live in the root level entity but can be added to an embedded one (depending on the actual store in use), as shown in the snippet below.
3840

3941
.Audit metadata in embedded entity

0 commit comments

Comments
 (0)