DATAREST-811 - Fix incorrect @Version documentation.

Original pull request: #295.
This commit is contained in:
Florian Lüdiger
2018-05-25 14:43:57 +02:00
committed by Oliver Gierke
parent c3b1da730f
commit 6de00a6dc6

View File

@@ -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: