File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -375,7 +375,7 @@ public class User {
375375
376376If you load a document through the template or repository, the version field will be automatically populated with the current CAS value.
377377It is important to note that you shouldn't access the field or even change it on your own.
378- Once you save the document back, it will either succeed or fail with a `OptimisticLockingFailureException `.
378+ Once you save the document back, it will either succeed or fail with a `DataIntegrityViolationException `.
379379If you get such an exception, the further approach depends on what you want to achieve application wise.
380380You should either retry the complete load-update-write cycle or propagate the error to the upper layers for proper handling.
381381
You can’t perform that action at this time.
0 commit comments