Commit Graph

1629 Commits

Author SHA1 Message Date
schlagi123
ec2c8449fc Fix typo in entity state detection documentation.
Closes #2416
2021-09-07 09:24:00 +02:00
Michael Simons
163e4f215b Remove remark about AbstractAuditable.
This class only exists in Spring Data JPA, not in Commons.

Closes #2437
2021-09-07 09:15:25 +02:00
Mark Paluch
d871bb6066 Remove tests that check for absence of parameter names.
Closes #2444
2021-09-07 09:09:23 +02:00
Oliver Drotbohm
7a1a9c72d7 Avoid reflection in SpringDataWebConfiguration.
We now use an explicit lookup via the application context to consume PageableHandlerMethodArgumentResolverCustomizer and SortHandlerMethodArgumentResolverCustomizer rather than autowiring those into a field.

Fixes #2440.
2021-08-26 16:15:13 +02:00
Jens Schauder
27ee2e63a7 Prepare 2.4.12 (2020.0.12).
See #2413
2021-08-12 10:25:33 +02:00
Oliver Drotbohm
6aee21d2ec StreamUtils.zip(…) now treats infinite streams correctly.
When an infinite Stream was handed into StreamUtils.zip(…) as first argument, the resulting stream was infinite, too, while inverting the argument order was limiting the resulting stream to the length of the finite one. This is now fixed by actually evaluating whether we can advance on both of the streams and shortcutting the process if that is not possible on either of the streams, limiting the processing of the overall Stream to the shorter of the two as already advertised in the Javadoc.

Fixes #2426.
2021-08-09 17:04:11 +02:00
Mark Paluch
3325dc5b40 Remove changelog shipped with the binaries.
Closes #2419
2021-07-22 08:28:27 +02:00
Jens Schauder
356713f430 Prepare 2.4.11 (2020.0.11).
See #2387
2021-07-16 10:18:57 +02:00
Jens Schauder
4fac75dff8 Updated changelog.
See #2387
2021-07-16 10:18:51 +02:00
Mark Paluch
dd0a162a3d Refine ClassGeneratingEntityInstantiator deprecation note.
Closes #2400
2021-07-13 10:35:32 +02:00
Yanming Zhou
aad811840f Fix outdated ExampleMatcher docs.
Closes #2404
2021-07-13 10:18:54 +02:00
Jens Schauder
0c64b4b23f Corrects the description of constructor detection.
Closes #2401
Original pull request: #2402.
2021-07-13 10:13:19 +02:00
Yanming Zhou
7d0b9ad187 Fix code example showing Streamable usage.
Closes #2391
2021-07-12 15:53:51 +02:00
Paul Lin
204f26f1a4 Fix broken link to Spring framework reference documentation.
Closes #2381.
2021-07-12 15:51:47 +02:00
Mark Paluch
5be698683b Polishing.
Add unit tests.

See #2392
Original pull request: #2393.
2021-07-12 15:47:39 +02:00
David Becker
53d238ddde Fix EvaluationContextExtension filter fall-through in ReactiveExtensionAwareEvaluationContextProvider.
Using JpaEvaluationContextExtension with reactive infrastructure in place, ReactiveExtensionAwareEvaluationContextProvider can lead to IllegalStateException if the desired extension doesn't match the predicate instead of being silently dropped.

Closes #2392
Original pull request: #2393.
2021-07-12 15:47:39 +02:00
Stephane Nicoll
28a5bab49a Polishing.
A public bean method that returns a private type is unusual and prevents the processing of such bean in reflection-free use cases. There was also an unnecessary qualifier in the implementation.

Closes #2399
2021-07-12 15:19:21 +02:00
Mark Paluch
f0a7612112 Polishing.
Fix Javadoc formatting. Consistently mention proxy class unwrapping.

Original pull request: #2406.
2021-07-07 14:51:54 +02:00
Oliver Drotbohm
629a519550 Repositories now allows lookup of parent repositories for sub-types.
When inheritance is used for aggregates, lookups of the repository for a Child aggregate instance have so far failed to return a repository registered for the Parent. Client code had to consider that scenario explicitly.

This commit introduces an additional lookup step in case we cannot find a repository for an aggregate type immediately. In this case, we then check for assignability of any of the known aggregate types we have registered repositories for and the type requested. I.e. for a request for the repository of Child, a repository, explicitly registered to manage Child instances would still be used. In the sole presence of a repository managing Parent instances, that would be returned for the request for Child, too.

Original pull request: #2406.
2021-07-07 14:45:48 +02:00
Mark Paluch
6fd5df5911 Updated changelog.
See #2376
2021-06-22 16:07:27 +02:00
Mark Paluch
78f5753ae4 Prepare 2.4.10 (2020.0.10).
See #2375
2021-06-22 15:17:54 +02:00
Mark Paluch
8f18b2fc0e Updated changelog.
See #2375
2021-06-22 15:17:47 +02:00
Mark Paluch
f123d5fd9f Polishing.
Update placeholder name to reflect its position instead of the content that is being added by using modules.

Closes #2382
2021-06-17 11:59:16 +02:00
Jens Schauder
1d9fc49dc4 Allow for a module specific inclusion for DTO projections.
See https://github.com/spring-projects/spring-data-jpa/issues/2009

See #2382
2021-06-17 11:59:16 +02:00
Mark Paluch
b469b5d4c7 Allow combining Sort and TypedSort using Sort.and(…).
We now retain properly the collection of orders by using accessor methods instead of relying on using the orders field. TypedSort orders are not using the orders field, instead they iterate over recorded persistent property paths.

Closes #2103
Original pull request: #2377.
2021-06-10 15:01:43 +02:00
Mark Paluch
b1aaf73dc8 Updated changelog.
See #2355
2021-05-14 12:36:38 +02:00
Mark Paluch
c23931e2f8 Prepare 2.4.9 (2020.0.9).
See #2354
2021-05-14 11:51:53 +02:00
Mark Paluch
75f5f4af06 Updated changelog.
See #2354
2021-05-14 11:51:47 +02:00
Mark Paluch
2bb21181e8 Obtain merged annotation for annotation validation.
We now validate declared annotations by pre-processing these through AnnotatedElementUtils to ensure a proper comparison. Previously, we compared annotation in their declared form (AnnotatedElement.getAnnotations()) with merged annotations which could fail due to aliasing effects of merged annotations.

Closes #2368.
2021-05-05 12:05:40 +02:00
Mark Paluch
3940400541 Limit BeanWrapper's KotlinCopyUtil to Kotlin Data classes.
Previously, we tried to invoke the copy(…) method on all Kotlin classes whereas the copy(…) method is only specific to Kotlin data classes.

Original pull request: #390.
Closes #2358.
2021-04-21 09:28:53 +02:00
Mark Paluch
267d502652 Updated changelog.
See #2345
2021-04-14 14:40:01 +02:00
Mark Paluch
30e78bc303 Prepare 2.4.8 (2020.0.8).
See #2346
2021-04-14 11:32:47 +02:00
Mark Paluch
0679cd3a4e Updated changelog.
See #2346
2021-04-14 11:32:43 +02:00
Mark Paluch
2715095e65 Updated changelog.
See #2327
2021-04-14 11:17:41 +02:00
Mark Paluch
348ce54b6a Polishing.
Tweak wording.

Original pull request: #2352.
2021-04-13 15:21:04 +02:00
Jens Schauder
94fa775975 Adds a new snippet for is-new-state-detection.
This is intended for inclusion by other modules.

Closes #2352.
2021-04-13 15:21:04 +02:00
Mark Paluch
1f583bab3d Back-off in ResultProcessor if the result object is an instance of the target type.
We now do not attempt to convert the object if it is an instance of the declared target type.

Closes #2347.
2021-04-06 13:37:10 +02:00
Mark Paluch
7211f1359e Prepare 2.4.7 (2020.0.7).
See #2328
2021-03-31 18:19:19 +02:00
Mark Paluch
98bd1de84a Updated changelog.
See #2328
2021-03-31 18:19:14 +02:00
Mark Paluch
701c6039a1 Updated changelog.
See #2303
2021-03-31 17:26:06 +02:00
Mark Paluch
dca844dd6f Document effect of using AccessType(PROPERTY) in combination with Persistable.
Closes #2338
Original pull request #2339
2021-03-25 11:40:07 +01:00
Mark Paluch
b6581ebd14 Fix Kotlin copy method assignability check.
We now resolve only the raw class when checking if a primary constructor argument is assignable to method parameters of the synthetic copy method.
Previously we used ResolvableType's assignability check which considered generic type arguments. As the type resolution between the KType and copy method type is not symmetric, the check only succeeded in cases where both types could be resolved to the same type/assignable type. Using projections or Any caused asymmetric resolution and therefor the assignability check returned non-assignable.

Closes #2324.
2021-03-22 10:06:47 +01:00
Mark Paluch
8b5f4674d2 Updated changelog.
See #2326
2021-03-17 11:31:30 +01:00
Mark Paluch
9b21241ebf Prepare 2.4.6 (2020.0.6).
See #2305
2021-03-17 10:53:43 +01:00
Mark Paluch
94fd0641a1 Updated changelog.
See #2305
2021-03-17 10:53:38 +01:00
Mark Paluch
f4699a7c08 Updated changelog.
See #2301
2021-03-17 10:35:12 +01:00
Mark Paluch
d43d5add66 Polishing.
Use ResolvableType for type assignability check when resolving Type from a KType.

See #2324.
2021-03-12 16:56:53 +01:00
Mark Paluch
eac1105177 Polishing.
Reduce test method visibility.

See #2324.
2021-03-12 11:30:01 +01:00
Mark Paluch
6a5812b3de Use primary copy method for Kotlin data classes.
We now resolve the copy method for Kotlin data classes that match the primary constructor. Previously, copy method resolution could find a secondary copy method as we didn't check for the primary constructor structure (parameter names and types).

Closes #2324.
2021-03-12 11:30:01 +01:00
Mark Paluch
aaf5858f49 Polishing.
Reformat code.

Original pull request: #2314.
Closes: #2313
2021-03-01 10:34:53 +01:00