Commit Graph

2423 Commits

Author SHA1 Message Date
Jens Schauder
9caacf1cc8 Prepare next development iteration.
See #2415
2021-08-12 15:16:21 +02:00
Jens Schauder
522c9504b5 Release version 2.6 M2 (2021.1.0).
See #2415
2021-08-12 15:03:17 +02:00
Jens Schauder
ff8b4218e2 Prepare 2.6 M2 (2021.1.0).
See #2415
2021-08-12 15:02:54 +02:00
Jens Schauder
e46ae6a275 Upgrade javax.interceptor to 1.2.2.
Closes #2430
2021-08-11 19:28:39 +02:00
Jens Schauder
ff00fdad6e Upgrade javax.transaction to 1.3.
Closes #2429
2021-08-11 19:28:39 +02:00
Jens Schauder
f4ed858079 Upgrade Vavr to 0.10.4.
Closes #2428
2021-08-11 19:28:29 +02:00
Oliver Drotbohm
fbe513446d 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:06:56 +02:00
Mark Paluch
fd586ebfdf Remove changelog shipped with the binaries.
Closes #2419
2021-07-22 08:28:57 +02:00
Mark Paluch
5fd8687506 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:17:22 +02:00
Greg L. Turnquist
2511b1f1d6 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:16:30 +02:00
Jens Schauder
17c8e7fcce After release cleanups.
See #2357
2021-07-16 14:19:57 +02:00
Jens Schauder
bb9f53f84d Prepare next development iteration.
See #2357
2021-07-16 14:19:55 +02:00
Jens Schauder
332036ed32 Release version 2.6 M1 (2021.1.0).
See #2357
2021-07-16 14:09:25 +02:00
Jens Schauder
a5fdd5ef74 Prepare 2.6 M1 (2021.1.0).
See #2357
2021-07-16 14:08:58 +02:00
Jens Schauder
4910564a36 Updated changelog.
See #2357
2021-07-16 14:08:39 +02:00
Jens Schauder
3a77bb8cb7 Updated changelog.
See #2387
2021-07-16 10:48:16 +02:00
Mark Paluch
db8431ee41 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:44 +02:00
sokomishalov
f91901387f 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:11:48 +02:00
Mark Paluch
9ca1c7e157 Refine ClassGeneratingEntityInstantiator deprecation note.
Closes #2400
2021-07-13 10:35:16 +02:00
Yanming Zhou
6c6f1b4014 Fix outdated ExampleMatcher docs.
Closes #2404
2021-07-13 10:19:05 +02:00
Jens Schauder
45e61dfa66 Corrects the description of constructor detection.
Closes #2401
Original pull request: #2402.
2021-07-13 10:12:36 +02:00
Christoph Strobl
b3ae0f7b0b Polishing.
Update documentation to match method signature.

Original Pull Request: #2410
2021-07-13 07:51:06 +02:00
Oliver Drotbohm
d3cd1ab60a Persistent entity type detection now starts with the association target type if available.
This causes us to inspect the most concrete type we can find from a property declaration that might be overridden using an annotation.

Closes: #2409
Original Pull Request: #2410
2021-07-13 07:48:28 +02:00
Oliver Drotbohm
e565c11dcc Consolidate names of methods that provide access to TypeInformation and Class on PersistentProperty.
We now name methods returning a TypeInformation<?> …TypeInformation() and ones that return Class<?> …Type(). In case of both flavors provided, overloads should move to the TypeInformation-based variant as the other one simply resolves ….getType() on the returned value.

Closes: #2408
Original Pull Request: #2410
2021-07-13 07:47:53 +02:00
Yanming Zhou
7e1c3454b3 Fix code example showing Streamable usage.
Closes #2391
2021-07-12 15:53:58 +02:00
Paul Lin
e6bebba7b6 Fix broken link to Spring framework reference documentation.
Closes #2381.
2021-07-12 15:51:21 +02:00
Mark Paluch
6b55a7cb86 Polishing.
Add unit tests.

See #2392
Original pull request: #2393.
2021-07-12 15:47:43 +02:00
David Becker
95e115b357 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:43 +02:00
Mark Paluch
3dcea0296a Adopt to changes in Kotlin Coroutines 1.5.1.
Closes #2411
2021-07-12 15:26:18 +02:00
Stephane Nicoll
8262e21c1a 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:18:35 +02:00
Oliver Drotbohm
b3b590dcf0 Unify entity type detection.
Unified the calculations made for entityTypeInformation and entityTypes in AbstractPersistentProperty. This avoids both calculations getting out of sync. Also we avoid premature calculation abortions if SimpleTypeHolder.isSimpleType(…) returns true for the raw property type. The latter has caused issues for collection properties in Spring Data KeyValue which considers everything in java.util a simple type.

Related ticket: #2390.
2021-07-09 11:10:34 +02:00
Mark Paluch
ab74551928 Polishing.
Reduce TypeDiscoverer.isNullableWrapper method visibility to private to avoid exposure in preparation for wider value type support.

Original pull request: #2394.
See #2390.
2021-07-08 11:49:56 +02:00
Christoph Strobl
3277467b74 Resolve all persistent entities for a persistent property.
Original pull request: #2394.
Closes #2390.
2021-07-08 11:49:36 +02:00
Christoph Strobl
1f77786d89 Don't create PersistentEntity for Nullable wrapper type.
Original pull request: #2394.
Closes #2390.
2021-07-08 11:49:25 +02:00
Mark Paluch
26c2db248b Polishing.
Fix Javadoc formatting. Consistently mention proxy class unwrapping.

Original pull request: #2406.
2021-07-07 14:52:03 +02:00
Oliver Drotbohm
27eac58691 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:44:52 +02:00
Mark Paluch
394187a03b 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:12:34 +02:00
Mark Paluch
847738324f Updated changelog.
See #2376
2021-06-22 16:07:25 +02:00
Mark Paluch
31cd5243f8 Updated changelog.
See #2375
2021-06-22 15:29:50 +02:00
Mark Paluch
fb3e50951e 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:07 +02:00
Jens Schauder
0cd99ce098 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:58:59 +02:00
Mark Paluch
c24ba262ca Polishing.
Use Spring's nullability annotations where used as part of API nullability indicators.

See #2385
2021-06-17 09:03:00 +02:00
Mark Paluch
e57238fe60 Directly import JSR305 jar.
Closes #2385
2021-06-17 08:46:56 +02:00
Mark Paluch
9242b2c7b2 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:53 +02:00
Mark Paluch
f97b4b98ca Updated changelog.
See #2355
2021-05-14 12:36:34 +02:00
Mark Paluch
7175e7bbbd Updated changelog.
See #2354
2021-05-14 12:06:37 +02:00
Greg L. Turnquist
afd262bada Update CI to JDK 16.
See #2334.
2021-05-13 15:37:06 -05:00
Mark Paluch
698cf28410 Disable unit tests for Kotlin unsigned integers until IDE support gets fixed.
Closes #2374
2021-05-12 14:58:04 +02:00
Mark Paluch
4eeb58b493 Fix link to contrib guide.
Closes #2372
2021-05-07 08:39:00 +02:00
Mark Paluch
ac9b127d9c 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:51 +02:00