Commit Graph

2412 Commits

Author SHA1 Message Date
Jens Schauder
3c8a135a89 Prepare next development iteration.
See #2414
2021-08-12 11:37:29 +02:00
Jens Schauder
5efabab0fd Release version 2.5.4 (2021.0.4).
See #2414
2021-08-12 11:22:49 +02:00
Jens Schauder
e68a2a6ad8 Prepare 2.5.4 (2021.0.4).
See #2414
2021-08-12 11:22:25 +02:00
Oliver Drotbohm
344aab7944 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:24 +02:00
Mark Paluch
ef8170844c Remove changelog shipped with the binaries.
Closes #2419
2021-07-22 08:28:46 +02:00
Mark Paluch
8f7a6d30e0 Polishing.
Extract adding the actual entity to the MappingContext into its own method along with error handling spanning the entire entity initialization process.

See #2329
Original pull request: #2367.
2021-07-20 10:19:02 +02:00
Greg L. Turnquist
b05965f2b2 Remove PersistentEntity from MappingContext upon mapping metadata initialization errors.
When an error happens inside the AbstractMappingContext, the caching sometimes gets corrupted. That's because some exceptions are caught, others are not. Instead, the error handling that clears out the cache needs to be shifted up one level, resulting in a simpler code block.

Closes #2329
Original pull request: #2367.
2021-07-20 10:19:02 +02:00
Jens Schauder
edc71531a4 After release cleanups.
See #2388
2021-07-16 11:51:05 +02:00
Jens Schauder
17fd049420 Prepare next development iteration.
See #2388
2021-07-16 11:51:02 +02:00
Jens Schauder
57c1d29027 Release version 2.5.3 (2021.0.3).
See #2388
2021-07-16 11:35:22 +02:00
Jens Schauder
4f3ee7ec0f Prepare 2.5.3 (2021.0.3).
See #2388
2021-07-16 11:34:27 +02:00
Jens Schauder
a17946a0fc Updated changelog.
See #2388
2021-07-16 11:34:23 +02:00
Mark Paluch
b49d1b7117 Polishing.
Un-deprecate constructor. Rearrange method arguments to match parameter significance. Reformat code, replace space indents with tabs.

Original pull request: #2403.
2021-07-13 14:13:51 +02:00
sokomishalov
d1e27b55e2 Accept JsonProvider upon JsonProjectingMethodInterceptorFactory creation.
We now configure explicitly the JsonProvider that is used by JSONPath through JsonProjectingMethodInterceptorFactory to avoid misconfiguration due to JSONPath defaulting attempts. Accepting JsonProvider allows for improved flexibility during configuration.

Closes #2403
2021-07-13 14:13:51 +02:00
Mark Paluch
9cc467fe59 Refine ClassGeneratingEntityInstantiator deprecation note.
Closes #2400
2021-07-13 10:35:30 +02:00
Yanming Zhou
57a142ce65 Fix outdated ExampleMatcher docs.
Closes #2404
2021-07-13 10:19:02 +02:00
Jens Schauder
1e4203ca2f Corrects the description of constructor detection.
Closes #2401
Original pull request: #2402.
2021-07-13 10:13:16 +02:00
Yanming Zhou
3c5cf34939 Fix code example showing Streamable usage.
Closes #2391
2021-07-12 15:53:55 +02:00
Paul Lin
5ce381e9df Fix broken link to Spring framework reference documentation.
Closes #2381.
2021-07-12 15:51:43 +02:00
Mark Paluch
812b34cdf5 Polishing.
Add unit tests.

See #2392
Original pull request: #2393.
2021-07-12 15:47:30 +02:00
David Becker
90a50d4d82 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:20 +02:00
Stephane Nicoll
23fbff0054 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:15 +02:00
Mark Paluch
88128e5986 Polishing.
Fix Javadoc formatting. Consistently mention proxy class unwrapping.

Original pull request: #2406.
2021-07-07 14:52:00 +02:00
Oliver Drotbohm
0d92abc603 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:43 +02:00
Mark Paluch
a01c4597ed Revise QuerydslPredicateBuilder nullability behavior.
We now no longer return a null Predicate from QuerydslPredicateBuilder.getPredicate(…) if the input values are empty or if the constraints are empty. Instead, we return an empty BooleanBuilder instance to avoid null handling on the calling side.

HandlerMethodArgumentsResolvers for QuerydslBindings retain their null/Optional.empty semantics.

Closes #2396
2021-06-29 10:18:59 +02:00
Mark Paluch
2516d71834 After release cleanups.
See #2376
2021-06-22 16:05:22 +02:00
Mark Paluch
1a6411f39b Prepare next development iteration.
See #2376
2021-06-22 16:05:19 +02:00
Mark Paluch
ef58092b0d Release version 2.5.2 (2021.0.2).
See #2376
2021-06-22 15:52:27 +02:00
Mark Paluch
6e6b4f9a85 Prepare 2.5.2 (2021.0.2).
See #2376
2021-06-22 15:51:38 +02:00
Mark Paluch
25e55ae777 Updated changelog.
See #2376
2021-06-22 15:51:30 +02:00
Mark Paluch
418fc0cbfb Updated changelog.
See #2375
2021-06-22 15:29:52 +02:00
Mark Paluch
1bdb44bb69 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:13 +02:00
Jens Schauder
733e4d8183 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:13 +02:00
Mark Paluch
a45873e98a 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:50 +02:00
Mark Paluch
366bd30290 After release cleanups.
See #2355
2021-05-14 12:34:20 +02:00
Mark Paluch
18151a079a Prepare next development iteration.
See #2355
2021-05-14 12:34:16 +02:00
Mark Paluch
daaba4dd2a Release version 2.5.1 (2021.0.1).
See #2355
2021-05-14 12:23:55 +02:00
Mark Paluch
e86480e651 Prepare 2.5.1 (2021.0.1).
See #2355
2021-05-14 12:23:21 +02:00
Mark Paluch
7e91f3358e Updated changelog.
See #2355
2021-05-14 12:23:15 +02:00
Mark Paluch
72fd400c44 Updated changelog.
See #2354
2021-05-14 12:06:39 +02:00
Mark Paluch
a7d9411581 Disable unit tests for Kotlin unsigned integers until IDE support gets fixed.
Closes #2374
2021-05-12 14:58:27 +02:00
Mark Paluch
b5ff1f08b2 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:34 +02:00
Mark Paluch
7bab9b9089 Update Jenkins job after branching.
See #2345
2021-04-28 08:59:12 +02:00
Mark Paluch
786ebec6a1 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:29:11 +02:00
Greg L. Turnquist
830f2f7296 Add LICENSE file.
See #2345.
2021-04-19 16:38:39 -05:00
Greg L. Turnquist
51dd1666a5 Authenticate against artifactory.
See #2345.
2021-04-19 16:38:28 -05:00
Mark Paluch
22141de549 After release cleanups.
See #2345
2021-04-14 14:30:40 +02:00
Mark Paluch
b80e40017b Prepare next development iteration.
See #2345
2021-04-14 14:30:36 +02:00
Mark Paluch
a7aacccf0b Release version 2.5 GA (2021.0.0).
See #2345
2021-04-14 14:18:47 +02:00
Mark Paluch
249fa737af Prepare 2.5 GA (2021.0.0).
See #2345
2021-04-14 14:18:21 +02:00