Commit Graph

2432 Commits

Author SHA1 Message Date
alikilickaya ba5d1875a2 Fix Javadoc in QueryByExampleExecutor.
Closes #2480
2021-10-13 14:16:48 +02:00
Pavel Gnusin 7f61bce4d0 Look up bean merged bean definitions in Repositories.
We now look up bean definitions for repositories using BeanFactory.getMergedBeanDefinition(…) to consider parent-child relationships across application contexts.

As we iterate through bean definitions considering ancestors we need to allow parent bean definitions. Previously, we obtained the bean definition from the child context and since the bean was inherited from the parent, the child context cannot provide a bean definition.

Closes #2383
Original pull request: #2384.
2021-10-12 09:38:39 +02:00
Mark Paluch f87ae360df Document restrictions of simple base-repository method overrides in regard to projections.
Closes #2473
2021-10-05 11:35:44 +02:00
Mark Paluch 44db1dc31a After release cleanups.
See #2434
2021-09-17 09:27:38 +02:00
Mark Paluch 7bd85491e5 Prepare next development iteration.
See #2434
2021-09-17 09:27:35 +02:00
Mark Paluch e1b0b67019 Release version 2.5.5 (2021.0.5).
See #2434
2.5.5
2021-09-17 09:18:31 +02:00
Mark Paluch 81e0e9d742 Prepare 2.5.5 (2021.0.5).
See #2434
2021-09-17 09:17:28 +02:00
Mark Paluch 02feabee3e Consider property path root in QuerydslBindings.
We now consider a qualified property path when registering and querying `QuerydslBindings` to ensure that paths matching various domain types do not accidentally get applied for a different type than they were registered for.
Previously, a binding for `Address.description` would be also applied to `User.description` as only the property path `description` was considered when looking up bindings.

Closes: #2418
Original Pull Request: #2422
2021-09-14 16:08:30 +02:00
Dmitriy Bogdanov 64a4b61ceb Add missing spaces to the docs and fix leveloffset.
Closes: #2454
2021-09-14 10:11:30 +02:00
Mark Paluch cae59216e5 Update wording from Appendix to Appendices.
Closes #2452
2021-09-14 08:42:06 +02:00
Mark Paluch 883223def2 Upgrade to Maven Wrapper 3.8.2.
See #2451
2021-09-10 15:39:34 +02:00
Mark Paluch a57c97c556 Upgrade to vavr 0.10.4.
Closes #2449
2021-09-10 09:29:37 +02:00
Mark Paluch 4861d550ba Reuse generated entity instantiators from ClassGeneratingEntityInstantiator instances.
We now reuse generated ObjectInstantiator classes instead of attempting to redefine classes with the same name. Redefinition leads to LinkageError and thus to the use of reflection-based instantiators and an increased allocation rate due to the failed attempt of class redeclaration.

Closes: #2446.
2021-09-09 15:18:36 +02:00
Mark Paluch 3c39da9401 Avoid Iterator allocations when calling Sort.isSorted().
Closes #2445
2021-09-07 16:07:34 +02:00
Mark Paluch 59a5b87c24 Polishing.
See #2416
2021-09-07 09:23:58 +02:00
schlagi123 50123d68d1 Fix typo in entity state detection documentation.
Closes #2416
2021-09-07 09:23:57 +02:00
Michael Simons af033a0ead Remove remark about AbstractAuditable.
This class only exists in Spring Data JPA, not in Commons.

Closes #2437
2021-09-07 09:15:34 +02:00
Mark Paluch b47069ea96 Remove tests that check for absence of parameter names.
Closes #2444
2021-09-07 09:09:28 +02:00
Oliver Drotbohm 532ba9556b 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:13:58 +02:00
Jens Schauder c148dad53c After release cleanups.
See #2414
2021-08-12 11:37:31 +02:00
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
2.5.4
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
2.5.3
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
2.5.2
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