diff --git a/src/main/asciidoc/etags-and-other-conditionals.adoc b/src/main/asciidoc/etags-and-other-conditionals.adoc index da463fa7f..e67691b35 100644 --- a/src/main/asciidoc/etags-and-other-conditionals.adoc +++ b/src/main/asciidoc/etags-and-other-conditionals.adoc @@ -15,10 +15,9 @@ The http://tools.ietf.org/html/rfc7232#section-2.3[ETag header] provides a way t ---- include::{spring-data-rest-root}/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/support/ETagUnitTests.java[tag=versioned-sample] ---- + +<1> The `@javax.persistence.Version` annotation flags this field as a version marker. ==== - -<1> Spring Data Commons's `@Version` annotation flags this field as a version marker. - This POJO, when served up as a REST resource by Spring Data REST, will have an `ETag` header with the value of the version field. We can conditionally `PUT`, `PATCH`, or `DELETE` that resource if we supply a `If-Match` header like this: