Commit Graph

2202 Commits

Author SHA1 Message Date
Mark Paluch
fefdf037b2 Polishing.
Extract method.

See #3310
2025-06-11 09:12:39 +02:00
Mark Paluch
000c4675fa Defer MappingContext access inPersistentEntities.
We now fetch mapping contexts from Iterable<MappingContext> later, when accessing PersistentEntities API to defer potential resolution when e.g. obtaining beans from a BeanFactory.

Closes #3310
2025-06-11 09:12:39 +02:00
Christoph Strobl
fd5292cf0e Polishing.
Revert changes targeting primitive and array types explicitly to extract minimal inversive change switching getPackage().getName() to getPackageName().

Original Pull Request: #3284
2025-06-05 12:47:39 +02:00
ckdgus0808
d496a65303 Fix NPE in Q type resolution for primitive and wrapper types.
Closes: #3284
See: spring-projects/spring-data-mongodb#4958

Signed-off-by: ckdgus08 <ckdgus0808@naver.com>
2025-06-05 12:47:14 +02:00
Mark Paluch
933a46dcdb Polishing.
Add unit tests.

See #3304
2025-06-03 11:51:31 +02:00
Yanming Zhou
200c091b34 Use mutable list to collect items from Stream for reversal.
>> There are no guarantees on the type, mutability, serializability, or thread-safety of the List returned

`Collector.toList()` doesn't guarantee mutability, then passing it to `Collections.reverse()` is not safe.

Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>
Closes #3304
2025-06-03 11:51:25 +02:00
Mark Paluch
5dbb51c86b Prepare 3.4.6 (2024.1.6).
See #3274
2025-05-16 10:48:12 +02:00
Mark Paluch
07e81684e7 Polishing.
Reformat code, refine Javadoc.

See #3258
Original pull request: #3277
2025-05-16 09:35:21 +02:00
Chris Bono
47abad4180 Avoid matching multipart parameters annotated with @ModelAttribute
The ProxyHandlerMethodArgumentResolver now avoids matching multipart parameters annotated with @ModelAttribute. This allows multipart parameters to be handled by RequestParamMethodArgumentResolver which properly handles multipart arguments.

Also, the `@ProjectedPayload` annotation can now be used on parameters. This prepares for the upcoming removal of support for non-annotated projections.

Fixes #3258
Related tickets #2937
Original pull request: #3277

Signed-off-by: Chris Bono <chris.bono@broadcom.com>
2025-05-16 09:35:21 +02:00
Mark Paluch
5dd2034d11 Polishing.
Add missing Antora property.

See #3262
2025-05-09 11:31:37 +02:00
Mark Paluch
9a22a9a41f Polishing.
Reformat code. Simplify flow. Add ticket reference to test.

See #3287
Original pull request: #3219
2025-05-09 11:08:12 +02:00
xeounxzxu
a0f3381f02 Avoid multiple DeferredRepositoryInitializationListener registrations in RepositoryConfigurationDelegate.
Closes #3287
Original pull request: #3219
2025-05-09 11:08:12 +02:00
Yanming Zhou
a6e90a756f Use List.of() and Set.of() where feasible.
Closes #3231
2025-05-09 10:45:56 +02:00
Seungrae
13375362ed Fix typos in reference documentation and Javadoc.
Signed-off-by: Seungrae Kim <obey1342@gmail.com>

Closes #3235
2025-05-09 10:42:29 +02:00
Mark Paluch
a2ad3e8542 Polishing.
Use dynamic copyright year. Disable feature-scroll by default on query method details to let modules opt-in.

See #3262
2025-05-09 10:24:02 +02:00
Dmitry Sulman
1bade16937 Fix Antora feature-scroll attribute.
Signed-off-by: Dmitry Sulman <dmitry.sulman@gmail.com>

Closes #3262
2025-05-09 10:24:01 +02:00
Mark Paluch
89a41a7354 Polishing.
Align documentation between reactive and imperative repository variants.

See #3280
Original pull request: #3281
2025-05-09 09:55:33 +02:00
Jens Schauder
5815c21d3d Improve documentation for CrudRepository.deleteById.
The documentation now clarifies that entity might get loaded and therefore possibly OptimisticLockingFailureException might get thrown.

Closes #3280
Original pull request: #3281
2025-05-09 09:55:33 +02:00
Mark Paluch
5f02942e60 Prepare 3.4.5 (2024.1.5).
See #3254
2025-04-22 10:44:58 +02:00
Tran Ngoc Nhan
3486e38e9a Update javadoc links.
This fixes javadoc links in a couple of adoc files.

Original pull request: #3260

Signed-off-by: Tran Ngoc Nhan <ngocnhan.tran1996@gmail.com>
(cherry picked from commit af10ad393a)
2025-04-16 17:46:31 -05:00
Tran Ngoc Nhan
17dcb5c836 Remove unused imports.
This cleans up a couple of classes by removing unused imports.

Original pull request: #3240

Signed-off-by: Tran Ngoc Nhan <ngocnhan.tran1996@gmail.com>
(cherry picked from commit 18f27e7e95)
2025-04-16 17:46:29 -05:00
KIMSIWOO
b064b69bf2 Fix example code in query methods details doc.
Original pull request: #3224

Signed-off-by: KIMSIWOO <sa20207@naver.com>
(cherry picked from commit c0b60b2906)
2025-04-16 17:38:12 -05:00
Jens Schauder
72802663d7 Tiny improvement of examples.
Examples for limiting queries with and without a property argument are now better mixed.
This makes it more clear that limiting and filtering by property are orthogonal concerns.

Closes #3268
Original pull request #3269
2025-04-16 10:02:43 +02:00
Mark Paluch
29fb105036 Prepare 3.4.4 (2024.1.4).
See #3246
2025-03-14 08:17:17 +01:00
Mark Paluch
50b74f6e92 Revise RepositoryInformation and RepositoryComposition caching.
We now use a refined strategy to cache RepositoryInformation and RepositoryComposition.

Previously, RepositoryComposition wasn't cached at all and store modules that e.g. contributed a Querydsl (or a different) fragment based on the interface declaration returned a new RepositoryComposition (and thus a different hashCode) each time RepositoryInformation was obtained leading to memory leaks caused by HashMap caching.

We now use Fragment's hashCode for the cache key resulting in RepositoryComposition being created only once for a given repository interface and input-fragments arrangement.

Closes #3252
2025-03-06 14:45:08 +01:00
Mark Paluch
bb59eb4631 Polishing.
Reformat code.

See #3168
2025-03-05 10:44:32 +01:00
mitu2
e79a2bd209 Remove branching overhead in BytecodeUtil by replacing if with else if.
Closes #3168
2025-03-05 10:44:32 +01:00
Mark Paluch
3c625cad28 Consider getters using get as getter for boolean Kotlin properties.
We now additionally consider get-prefixed methods in addition to is-prefixed methods as getters for boolean properties.

Closes #3249
2025-02-20 14:14:37 +01:00
Mark Paluch
b2d5be1c2c Prepare 3.4.3 (2024.1.3).
See #3234
2025-02-14 10:39:44 +01:00
Mark Paluch
15f254b75e Polishing.
Fix Querydsl lettercasing.

See #3243
2025-02-13 09:16:39 +01:00
Mark Paluch
232a3da2c8 Split extensions ref doc page into page with includes.
Closes #3243
2025-02-13 09:02:59 +01:00
Mark Paluch
b8950af82a Document that fluent findBy(…) queries must return a result.
Closes #3237
2025-01-22 14:14:00 +01:00
Mark Paluch
d197037027 Fix Querydsl Nullability annotations.
Closes #2044
2025-01-22 11:12:02 +01:00
Mark Paluch
be0d8c3f57 Document OpenFeign Querydsl support.
Closes #3236
2025-01-22 11:02:29 +01:00
Mark Paluch
c2f2cb8029 Document restrictions for zero Limit PageRequest translation.
Closes #3102
2025-01-21 10:25:11 +01:00
Mark Paluch
dba527cdea Prepare 3.4.2 (2024.1.2).
See #3221
2025-01-17 11:37:19 +01:00
Mark Paluch
b60feb71e6 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:25 +01:00
Tran Ngoc Nhan
19af483959 Fix typos.
Documentation, assertion messages.

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

Closes: #3226
2025-01-10 10:21:14 +01:00
Mark Paluch
3f0f788019 Extend license header copyright years to 2025.
See #3228
2025-01-08 09:58:44 +01:00
Christoph Strobl
91697f8ce2 Prepare 3.4.1 (2024.1.1).
See #3204
2024-12-13 09:34:25 +01:00
Mark Paluch
75175d686d Update Projection section in reference documentation.
Closes #3216
2024-12-03 11:00:22 +01:00
Mark Paluch
36b0c26c3e Polishing.
Fix ticket reference.

See #3215
2024-12-02 09:09:58 +01:00
Mark Paluch
4bdcbd01f1 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:35 +01:00
Mark Paluch
2f11039ba3 Refine Value Expression documentation.
Closes #3214
2024-11-29 09:42:40 +01:00
Mark Paluch
0a2e9f1659 Polishing.
Fix deprecation version.

See #3183
2024-11-18 08:57:03 +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