Skip to content

Commit 374ccc3

Browse files
MayCXCschauder
authored andcommitted
Small documentation fix.
Improve grammar. Remove redundant line. Original pull request #1765
1 parent 160c665 commit 374ccc3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Diff for: src/main/antora/modules/ROOT/pages/jdbc/transactions.adoc

+1-3
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ Instead, the `readOnly` flag is propagated as a hint to the underlying JDBC driv
9696

9797
Spring Data JDBC supports locking on derived query methods.
9898
To enable locking on a given derived query method inside a repository, you annotate it with `@Lock`.
99-
The required value of type `LockMode` offers two values: `PESSIMISTIC_READ` which guarantees that the data you are reading doesn't get modified and `PESSIMISTIC_WRITE` which obtains a lock to modify the data.
99+
The required value of type `LockMode` offers two values: `PESSIMISTIC_READ` which guarantees that the data you are reading doesn't get modified, and `PESSIMISTIC_WRITE` which obtains a lock to modify the data.
100100
Some databases do not make this distinction.
101101
In that cases both modes are equivalent of `PESSIMISTIC_WRITE`.
102102

@@ -118,5 +118,3 @@ If you are using a databse with the MySQL Dialect this will result for example i
118118
----
119119
Select * from user u where u.lastname = lastname LOCK IN SHARE MODE
120120
----
121-
122-
Alternative to `LockMode.PESSIMISTIC_READ` you can use `LockMode.PESSIMISTIC_WRITE`.

0 commit comments

Comments
 (0)