Skip to content

Commit 8f8efbd

Browse files
authored
Fix CasMismatch documentation. (#1320)
Closes #1314.
1 parent f08b24e commit 8f8efbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/asciidoc/entity.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ public class User {
375375

376376
If you load a document through the template or repository, the version field will be automatically populated with the current CAS value.
377377
It 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`.
379379
If you get such an exception, the further approach depends on what you want to achieve application wise.
380380
You should either retry the complete load-update-write cycle or propagate the error to the upper layers for proper handling.
381381

0 commit comments

Comments
 (0)