Browse Source

Update Auditing Documentation to latest changes.

Original pull request #3384
See #3383
pull/3408/head
Christoph Strobl 1 month ago committed by Jens Schauder
parent
commit
0397b8db5b
No known key found for this signature in database
GPG Key ID: 2BE5D185CD2A1CE6
  1. 2
      src/main/antora/modules/ROOT/pages/auditing.adoc

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

@ -34,6 +34,8 @@ class Customer { @@ -34,6 +34,8 @@ class Customer {
As you can see, the annotations can be applied selectively, depending on which information you want to capture.
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`.
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`.
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.
.Audit metadata in embedded entity

Loading…
Cancel
Save