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
159159|`true`
160160|Enable wildcard pattern support for repository find operations
161161
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+
162166|`redis.om.index-creation-mode.create-and-replace`
163167|`true`
164168|Create and replace indexes on startup
@@ -181,6 +185,7 @@ redis:
181185 # Repository Configuration
182186 repository:
183187 support-wildcard-scan: true
188+ throw-on-save-all-failure: false # Set to true to throw exceptions on bulk save failures
184189
185190 # Index Creation
186191 index-creation-mode:
Original file line number Diff line number Diff line change @@ -48,6 +48,13 @@ List<Company> redisInc = entityStream.of(Company.class)
4848List<Company> companies = entityStream.of(Company.class)
4949 .filter(Company$.NAME.eq("RedisInc").and(Company$.YEAR_FOUNDED.eq(2011)))
5050 .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());
5158----
5259
5360=== 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
147147|Returns all instances of the type T with the given IDs.
148148
149149|<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).
151151|===
152152
153153=== PagingSortingRepository
You can’t perform that action at this time.
0 commit comments