-
Notifications
You must be signed in to change notification settings - Fork 563
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configure the exposition of the @Version property in request body [DATAREST-1448] #1809
Comments
Differently from the entity id exposition, it would be convenient to be able to generally enable the exposition of version fields. That would allow to support optimistic locking without having to enable the exposition of the version field for each entity. |
The version is exposed via the
Can you elaborate on that? The general contract for |
@alienisty on #1981:
I don't think we should cater that corner case. There's a definition of hoe |
We use the version to enable optimistic locking which spring data JPA supports. So far we have been including the version to the JSON payload we send to the server when we update a resource to ensure consistency. |
genglefr opened DATAREST-1448 and commented
Would it possible to configure the exposition in the body of the
@Version
property?My case is the following:
@Version
annotated Instant fieldIn the default configuration, the resource assembler simply transforms the
@Version
property into Etag and swallows it from the response bodyAffects: 3.2 GA (Moore)
1 votes, 1 watchers
The text was updated successfully, but these errors were encountered: