From 0397b8db5bae2d54eb25da55620f783b25f67415 Mon Sep 17 00:00:00 2001 From: Christoph Strobl Date: Wed, 12 Nov 2025 07:46:06 +0100 Subject: [PATCH] Update Auditing Documentation to latest changes. Original pull request #3384 See #3383 --- src/main/antora/modules/ROOT/pages/auditing.adoc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/antora/modules/ROOT/pages/auditing.adoc b/src/main/antora/modules/ROOT/pages/auditing.adoc index 57da96964..4fe82a354 100644 --- a/src/main/antora/modules/ROOT/pages/auditing.adoc +++ b/src/main/antora/modules/ROOT/pages/auditing.adoc @@ -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