-
Notifications
You must be signed in to change notification settings - Fork 368
Commit cd3d0b1
Polishing.
Refactored the unit tests to include a negative case and to separate the different scenarios tested.
Removed the default LockMode from the Lock annotation.
I have the feeling that most users will assume an exclusive Lock when none is specified, but also don't want to request stronger locks than required.
Original pull request #1158
See #1041 1 parent e68c355 commit cd3d0b1
File tree
3 files changed
+14
-11
lines changed- spring-data-jdbc/src
- main/java/org/springframework/data/jdbc/repository/query
- test/java/org/springframework/data/jdbc/repository
- query
3 files changed
+14
-11
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
34 | 34 |
| |
35 | 35 |
| |
36 | 36 |
| |
37 | - | ||
37 | + | ||
38 | 38 |
| |
39 | 39 |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
335 | 335 |
| |
336 | 336 |
| |
337 | 337 |
| |
338 | + | ||
338 | 339 |
| |
339 | 340 |
| |
340 | 341 |
| |
|
Lines changed: 12 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
25 | 25 |
| |
26 | 26 |
| |
27 | 27 |
| |
28 | - | ||
29 | 28 |
| |
30 | 29 |
| |
31 | 30 |
| |
| |||
123 | 122 |
| |
124 | 123 |
| |
125 | 124 |
| |
126 | - | ||
125 | + | ||
127 | 126 |
| |
128 | 127 |
| |
129 | - | ||
130 | 128 |
| |
131 | - | ||
132 | - | ||
129 | + | ||
130 | + | ||
133 | 131 |
| |
134 | 132 |
| |
135 | 133 |
| |
136 | - | ||
134 | + | ||
137 | 135 |
| |
138 | - | ||
139 | 136 |
| |
140 | 137 |
| |
141 | - | ||
142 | 138 |
| |
143 | - | ||
144 | - | ||
145 | 139 |
| |
146 | 140 |
| |
147 | 141 |
| |
142 | + | ||
143 | + | ||
144 | + | ||
145 | + | ||
146 | + | ||
147 | + | ||
148 | + | ||
149 | + | ||
148 | 150 |
| |
149 | 151 |
| |
150 | 152 |
| |
|
0 commit comments