Commit Graph

2184 Commits

Author SHA1 Message Date
Mark Paluch
6e8d53b321 Prepare 3.5 M1 (2025.0.0).
See #3205
2025-02-14 12:22:18 +01:00
Mark Paluch
906d581aa1 Polishing.
Fix Querydsl lettercasing.

See #3243
2025-02-13 09:16:59 +01:00
Mark Paluch
8f3bb79337 Split extensions ref doc page into page with includes.
Closes #3243
2025-02-13 09:02:50 +01:00
Mark Paluch
c1cd613488 Polishing.
Add since tags. Reformat code. Switch to Collection-typed properties as Iterable is often used in domain models without being an actual mapped collection.

See #3010
Original pull request: #3241
2025-02-10 14:37:13 +01:00
mipo256
11bdb9a0a9 Introduce KIterablePropertyPath for type-safe property path mappings using collections.
See #3010
Original pull request: #3241

Signed-off-by: mipo256 <mikhailpolivakha@gmail.com>
2025-02-10 14:36:41 +01:00
Mark Paluch
4e848f3bf7 Polishing.
Refine Pageable sort override.

See #1011
2025-02-05 11:44:01 +01:00
Mark Paluch
eefb1dc239 Add support for fluent queries returning a Slice.
Closes #1011
2025-02-05 11:43:57 +01:00
Mark Paluch
3969be03c9 Polishing.
Introduce empty constants to reduce allocations.

See #3193
Original pull request: #3194
2025-02-04 15:49:46 +01:00
Christoph Strobl
db382681a8 Enforce non-null contract on vector elements.
Also add shortcuts for empty sources and simplify copy calls that do not transform source values.

See #3193
Original pull request: #3194
2025-02-04 15:49:46 +01:00
Mark Paluch
059d09a224 Introduce Vector abstraction.
Closes #3193
Original pull request: #3194
2025-02-04 15:49:40 +01:00
Mark Paluch
f86ee7f97f Document that fluent findBy(…) queries must return a result.
Closes #3237
2025-01-22 14:13:35 +01:00
Mark Paluch
613ee5f55a Fix Querydsl Nullability annotations.
Closes #2044
2025-01-22 11:11:55 +01:00
Mark Paluch
0d76b47119 Document OpenFeign Querydsl support.
Closes #3236
2025-01-22 11:02:32 +01:00
Mark Paluch
33befea145 Document restrictions for zero Limit PageRequest translation.
Closes #3102
2025-01-21 10:24:57 +01:00
Mark Paluch
ae6fa747a1 Skip unnamed DTO projection properties.
We now skip unnamed DTO projection properties and issue a warning log to raise awareness.

Skipping unnamed (null) properties avoids identification as DTO and only selects properties stemming from named constructor arguments.

Add tests for Kotlin data classes using value classes for verification.

Closes #3225
2025-01-15 12:21:19 +01:00
Tran Ngoc Nhan
6f0b7f6a0a Fix typos.
Documentation, assertion messages.

Closes #3223
2025-01-13 11:56:57 +01:00
Jens Schauder
42f6024ea1 Refining QBE documentation.
Adds a configurable limitation about collection support in Query By Example.

Closes: #3226
2025-01-10 10:21:45 +01:00
Mark Paluch
609ecfae0f Extend license header copyright years to 2025.
See #3230
2025-01-08 10:04:43 +01:00
mipo256
c1ec988e7f Removed deprecated api usage.
Closes #3218
2024-12-11 10:57:38 +01:00
Mark Paluch
3f543c2152 Update Projection section in reference documentation.
Closes #3216
2024-12-03 11:00:52 +01:00
Mark Paluch
1f23498041 Polishing.
Fix ticket reference.

See #3215
2024-12-02 09:09:46 +01:00
Mark Paluch
b2c3623a99 Resolve bridged method when projected PropertyDescriptor resolves to a bridge method.
We now skip synthetic bridge methods when resolving a PropertyDescriptor from a called interface method on the target type and resolve the bridged method.

Closes #3215
2024-12-02 09:08:50 +01:00
Mark Paluch
00409b35fa Refine Value Expression documentation.
Closes #3214
2024-11-29 09:42:21 +01:00
Mark Paluch
4718c454ae Introduce public ReactivePageableExecutionUtils variant of pageable utils.
Closes #3209
2024-11-21 08:56:32 +01:00
Mark Paluch
771347bf7d Revise ClassUtils and ReflectionUtils.
We deprecated `ClassUtils` in the repo.utils package and introduced a slimmer variant in o.s.d.util. Also, ReflectionUtils hosts now several methods that have been in ClassUtils along with an improved method naming (find vs. get in combination with return value semantics).

CastUtils is deprecated as we do not widely use it.
2024-11-20 13:59:24 +01:00
Mark Paluch
587cd70646 Polishing.
Mark PersistenceConstructor for removal.

See #3207
2024-11-19 11:39:17 +01:00
Mark Paluch
38b9a0ac0b Deprecate pure repository SpEL support components for removal.
Closes #3207
2024-11-18 09:01:41 +01:00
Mark Paluch
499abbee41 Polishing.
Fix deprecation version.

See #3183
2024-11-18 08:56:58 +01:00
Mark Paluch
f554dd69fd Prepare 3.4 GA (2024.1.0).
See #3183
2024-11-15 14:10:36 +01:00
Mark Paluch
99b95ca72e Polishing.
Tweak wording. Add Override annotations.

See #3200
Original pull request: #3201
2024-11-15 09:59:05 +01:00
Christoph Strobl
0a19501e3d Update custom repository extension section.
Closes #3200
Original pull request: #3201
2024-11-15 09:58:52 +01:00
Mark Paluch
09ba413316 Refine Scrolling refdocs.
Closes #3192
2024-11-04 09:36:09 +01:00
Stefano Cordio
9ed3a451a4 Minor improvements in BootstrapMode Javadoc.
Closes #3191
2024-11-04 08:39:54 +01:00
Christoph Strobl
1b79eeb5a2 Polishing.
Use double checked locking to be as close to the previous implementation but still benefit from the fast read operation.

Original Pull Request: #3186
2024-10-31 08:46:19 +01:00
Mark Paluch
adc8e3ffae Revisit internal caching arrangements.
Closes: #3185
Original Pull Request: #3186
2024-10-31 08:43:36 +01:00
Mark Paluch
e0e881f6b8 Prepare for removal of ListenableFuture.
Closes #3190
2024-10-30 08:32:26 +01:00
Mark Paluch
24cf1fc7d5 Polishing.
Refine Javadoc and update ReactivePageableHandlerMethodArgumentResolver. Fix nullability annotations.

See #3188
2024-10-29 09:25:41 +01:00
Sergey Zolotarev
7a5e4d7305 Remove outdated information from Javadoc for PageableHandlerMethodArgumentResolver.
Closes #3188
2024-10-29 09:25:26 +01:00
LajosPolya
a7fe3554c3 Fix spelling SimplePropertyValueConversions javadoc.
Closes #3189
2024-10-29 09:11:39 +01:00
Mark Paluch
5e0a2505f2 Prepare 3.4 RC1 (2024.1.0).
See #3151
2024-10-18 12:46:43 +02:00
Mark Paluch
38e862d339 Polishing.
Remove unnecessary static keywords.

See #3178
2024-10-17 15:26:19 +02:00
serv-inc
3b20d71193 Fix typo in EnableSpringDataWebSupport.
Closes #3178
2024-10-17 15:26:07 +02:00
Mark Paluch
089e470332 Polishing.
Add DDD context. Explain identifier to domain object relationship. Tweak wording.

See #3173
Original pull request: #3174
2024-10-17 15:23:01 +02:00
Christoph Strobl
f736636f62 Update documentation.
Add section on reserved method names within repository interfaces.

Closes #3173
Original pull request: #3174
2024-10-17 15:22:45 +02:00
Mark Paluch
b17bdec034 Polishing.
Avoid nullability in RepositoryMethodContextHolder.getContext(). Introduce shortcut in RepositoryMethodContext to obtain the current thread-local context. Update documentation.

See #3175.
Original pull request: #3176
2024-10-16 10:59:02 +02:00
Christoph Strobl
24c31bfd65 Move responsibility for storing method context to dedicated component.
See #3175.
Original pull request: #3176
2024-10-16 10:58:54 +02:00
Oliver Drotbohm
323aa60808 Move RepositoryMethodContext to repository.core package.
RepositoryMethodContext are now made available for dependency injection via RepositoryConfigurationExtensionSupport.registerBeansForRoot(…). Moved RMC into repository.core package (previously repository.core.support) and only expose factory methods on DefaultRepositoryMethodContext. DRMC also exposes a injection proxy lookup method that creates a proxy equipped with a TargetSource delegating to DRMC.getInstance() (previously ….getContext()). An additional, static DRMC.forMethod(…) allows the creation of a default instance for testing purposes.

Rename getRepository() to getMetadata() on RMC.

Fixes #3175.
Original pull request: #3176
2024-10-16 10:58:41 +02:00
Hosam Aly
55afe84b44 Fix typo in query-methods-details.adoc.
Fix a typo: Priced => Product

Closes #3172
2024-10-14 08:49:38 +02:00
imcb
15aa855690 Fix typo in definition.adoc.
Closes #3147
2024-10-11 10:39:04 +02:00
Mark Paluch
096836ee80 Add ValueExpression infrastructure for query methods.
Introduce ValueExpressionQueryRewriter as replacement for SpelQueryContext and QueryMethodValueEvaluationContextAccessor to encapsulate common ValueExpression functionality for Spring Data modules wanting to resolve Value Expressions in query methods.

Reduce dependencies in RepositoryFactoryBeanSupport and RepositoryFactorySupport to EvaluationContextProvider instead of QueryMethodEvaluationContextProvider to simplify dependencies.

Deprecate QueryMethodEvaluationContextProvider and its reactive variant for future removal.

Closes #3049
Original pull request: #3050
2024-10-09 13:37:04 +02:00