Move documentation bits regarding AbstractAuditable into JPA-specific documentation.

Closes #2284
This commit is contained in:
Mark Paluch
2021-09-07 09:17:50 +02:00
parent 67f15c5289
commit fd3aa697c3

View File

@@ -988,9 +988,13 @@ interface UserRepository extends Repository<User, Long> {
====
:leveloffset: +1
include::{spring-data-commons-docs}/auditing.adoc[]
:leveloffset: -1
There is also a convenience base class, `AbstractAuditable`, which you can extend to avoid the need to manually implement the interface methods. Doing so increases the coupling of your domain classes to Spring Data, which might be something you want to avoid. Usually, the annotation-based way of defining auditing metadata is preferred as it is less invasive and more flexible.
[[jpa.auditing]]
== JPA Auditing