File tree Expand file tree Collapse file tree 3 files changed +13
-1
lines changed
docs/content/modules/ROOT/pages Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -159,6 +159,10 @@ Redis OM Spring adds specific configuration properties to customize its behavior
159
159
|`true`
160
160
|Enable wildcard pattern support for repository find operations
161
161
162
+ |`redis.om.repository.throw-on-save-all-failure`
163
+ |`false`
164
+ |Throw exceptions on `saveAll()` failures instead of logging warnings (new in 1.0.0)
165
+
162
166
|`redis.om.index-creation-mode.create-and-replace`
163
167
|`true`
164
168
|Create and replace indexes on startup
@@ -181,6 +185,7 @@ redis:
181
185
# Repository Configuration
182
186
repository:
183
187
support-wildcard-scan: true
188
+ throw-on-save-all-failure: false # Set to true to throw exceptions on bulk save failures
184
189
185
190
# Index Creation
186
191
index-creation-mode:
Original file line number Diff line number Diff line change @@ -48,6 +48,13 @@ List<Company> redisInc = entityStream.of(Company.class)
48
48
List<Company> companies = entityStream.of(Company.class)
49
49
.filter(Company$.NAME.eq("RedisInc").and(Company$.YEAR_FOUNDED.eq(2011)))
50
50
.collect(Collectors.toList());
51
+
52
+ // Combining predicates with different field types (new in 1.0.0)
53
+ // Use andAny() or orAny() when combining different field types
54
+ List<Company> filtered = entityStream.of(Company.class)
55
+ .filter(Company$.NAME.eq("RedisInc")
56
+ .andAny(Company$.EMPLOYEE_COUNT.gt(100L)))
57
+ .collect(Collectors.toList());
51
58
----
52
59
53
60
=== OR Conditions
Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ The following table lists the methods implemented from https://docs.spring.io/sp
147
147
|Returns all instances of the type T with the given IDs.
148
148
149
149
|<S extends T> List<S> saveAll(Iterable<S> entities)
150
- |Saves all given entities.
150
+ |Saves all given entities. By default, errors are logged as warnings. Set `redis.om.repository.throw-on-save-all-failure=true` to throw exceptions on failures (new in 1.0.0).
151
151
|===
152
152
153
153
=== PagingSortingRepository
You can’t perform that action at this time.
0 commit comments