Allow customizing AuditableBeanWrapperFactory
#2040
Labels
status: waiting-for-triage
An issue we've not yet triaged
Milestone
We use OffsetDateTime for our auditing data, but a property of such type annotated with @LastModifiedDate fails to convert it to instant because the converters in Jsr310Converters do not provide a converter from OffsetDateTime to Date.
The other problem is that the annotation is only supported on entity properties or their getters and is allowed but with no effect on methods that are not properties getters.
For example, we'd like to add the Last-Modified-Date header as a trait, using an interface, for example:
The above does not work out of the box so we customise the AuditableBeanWrapperFactory by delegating to MappingAuditableBeanWrapperFactory for the "standard" case and to a custom implementation to support our desired mechanism.
Recently though, as reported in #1981, RepositoryRestMvcConfiguration can no longer be subclassed, so we would like to either restore the previous support, or add the ability to obtain the desired behaviour.
The text was updated successfully, but these errors were encountered: