Commit Graph

1691 Commits

Author SHA1 Message Date
Mark Paluch
9866df88be Polishing.
Consistent wording for pageable and sort arguments.

See #2574
2022-03-18 15:07:37 +01:00
Diego Krupitza
95dd775d21 Update documentation for repository Pageable and Sort arguments.
Replace outdated `null` acceptance for `Pageable` with `Pageable.unpaged()`
 `QueryByExampleExecutor#findAll(Example<S> example, Pageable pageable)` should does not accept null values since there is `Pageable.unpaged()`. Furthermore, the same applies to `PagingAndSortingRepository#findAll(Pageable pageable)`.

Related ticket: spring-projects/spring-data-jpa/issues/2464
Closes #2574
2022-03-18 15:07:23 +01:00
Mark Paluch
536d542cce Consider annotated methods in AnnotationRevisionMetadata.
We now detect annotated methods.

Closes #2569
2022-03-02 14:47:52 +01:00
Mark Paluch
4788b63268 Update documentation of AbstractEntityInformation.
Align documentation with the code behavior as the behavior was changed but the documentation was not updated with the previous change.

Closes #2567
2022-03-02 08:52:28 +01:00
Christoph Strobl
fe338de043 Don't create PersistentEntity for Nullable wrapper type.
Original pull request: #2394.
Closes #2390.
2022-02-21 15:57:19 +01:00
Mark Paluch
b92c00c445 Backport Java 17 test compatibility changes.
Avoid usage of encapsulated tests as dummies. Add dependency override for ASM dependencies.

See #2423
2022-02-21 15:57:19 +01:00
Mark Paluch
e00ef6e07a Prepare 2.5.9 (2021.0.9).
See #2527
2022-02-18 10:24:13 +01:00
Mark Paluch
6e4bdeb4a5 Clarify Javadoc for FallbackPageable in PageableHandlerMethodArgumentResolverSupport.
Closes #2551
2022-02-17 14:36:32 +01:00
Christoph Strobl
b92e2695c5 Update copyright year to 2022.
See: #2552
2022-02-17 12:45:05 +01:00
Mark Paluch
3f53079072 Refine Coroutine wording around when to use suspend in method declarations.
Closes #2503
2022-01-25 11:09:00 +01:00
Mark Paluch
91a9e36a17 Document dynamic projections parameter detection.
Closes #2510
2022-01-25 09:50:53 +01:00
yelis913
5844d5986f Add missing verb to the error message.
Closes #2524
2022-01-17 11:15:33 +01:00
Christoph Strobl
0c47de9b52 Prepare 2.5.8 (2021.0.8).
See #2495
2022-01-14 09:47:07 +01:00
Mark Paluch
e14cf48e6e Fix spliterator size hint in CloseableIterator.spliterator().
We now report -1 as size to avoid zero-size results for count() or toList() operators.

Closes #2519
2022-01-03 13:50:16 +01:00
Mark Paluch
cffac63b04 Fix argument expansion in RepositoryFactorySupport logging.
Closes #2502
2021-12-07 09:34:14 +01:00
Jens Schauder
fc788137f4 Prepare 2.5.7 (2021.0.7).
See #2483
2021-11-12 10:26:42 +01:00
Mark Paluch
f141288d90 Refine documentation for PageableExecutionUtils.
Closes #2492
2021-11-09 14:48:17 +01:00
Mark Paluch
8d20bad137 Polishing.
Reduce test element visibility, remove unused constant.

See #2472
2021-10-19 14:31:12 +02:00
Mark Paluch
23f4774031 Consider nested property paths containing a number.
PropertyPath now considers nested property paths (userLastname2 -> user.lastname2) that contain or end with a number.

Closes #2472
2021-10-19 14:31:12 +02:00
Mark Paluch
5236844ce6 Prepare 2.5.6 (2021.0.6).
See #2461
2021-10-18 11:10:48 +02:00
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
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
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
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
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