Commit Graph

2523 Commits

Author SHA1 Message Date
Arend v. Reinersdorff
d1836eefe0 Add missing space in reference documentation.
Closes #2628
2022-05-16 15:53:22 +02:00
Greg L. Turnquist
3f123dff59 Fix typo in repository documentation.
Original issue: https://github.com/spring-projects/spring-data-jpa/issues/1761

Closes #2629.
2022-05-13 17:15:43 -05:00
Greg L. Turnquist
9b5c1e8ec4 Extend query method special parameter types to any subclasses.
Spring Data Commons has a hard-coded list of special types than can be included in query methods including Pageable and Sort.

A custom finder with PageRequest, even though it extends Pageable, will fail when it would work fine with a narrowed input. This extends the list using an assignability check.

Related: spring-projects/spring-data-jpa#2013
See #2626.
2022-05-12 17:16:30 +02:00
Oliver Drotbohm
463cb47383 MethodInvocationRecorder now supports traversing primitive properties.
We now return a default value for invocations of methods returning a primitive value to pass the AOP infrastructure's check for compatible values. Before, that barked at the null value returned for the invocation.

Fixes #2612.
2022-05-04 15:07:50 +02:00
Christoph Strobl
87b04986bc After release cleanups.
See #2579
2022-04-19 12:13:23 +02:00
Christoph Strobl
a06a62094b Prepare next development iteration.
See #2579
2022-04-19 12:13:20 +02:00
Christoph Strobl
7a45df2c16 Release version 2.6.4 (2021.1.4).
See #2579
2022-04-19 12:03:13 +02:00
Christoph Strobl
b0213c4497 Prepare 2.6.4 (2021.1.4).
See #2579
2022-04-19 12:02:43 +02:00
Mark Paluch
6a96d8ee5b Upgrade to XMLBeam 1.4.23.
Closes #2605
2022-04-19 09:02:42 +02:00
John Blum
d522928a73 Fix mispelling of ClassUtils.getNumberOfOccurrences(..).
* Re-implement getNumberOfOccurrences(..) in terms of a Stream.
* Deprecate the mispelled getNumberOfOccurences(..) method and delegate to the new getNumberOfOccurrences(..) method.
* Edit Javadoc.

Closes #2600.
2022-04-12 11:25:34 -07:00
John Blum
cba64f3462 Fix grammatical errors in Exception messages.
Closes #2599.
2022-04-12 11:24:53 -07:00
Oliver Drotbohm
480f9ccffa Fix PersistentEntity lookup in AbstractMappingContext.hasPersistentEntity(…)
Looking up a PersistentEntity via ….getPersistentEntity(…) applies some massaging of the given type as it could be a proxy type created for a user type. That wrangling was not applied in ….hasPersistentEntity(…) which resulted in a call to that method with a proxy type yielding false although it shouldn't if we already have a PersistentEntity available for the corresponding user type.

We now explicitly lookup the entity by original type and, if it's not the user type itself, try to look up the entity for the latter.

Fixes #2589.
2022-04-08 11:35:33 +02:00
Mark Paluch
3d2df962a8 Polishing.
Tweak Javadoc comments.

See #2585
2022-03-25 13:37:45 +01:00
Mark Paluch
33726a4cd9 Retain case-sensitivity and null-handling when changing Sort direction.
We now retain case-sensitivity and null-handling configuration when changing the entire Sort direction.

Closes #2585
2022-03-25 13:37:45 +01:00
Mark Paluch
7312904ae4 Gracefully skip non-assignable lambda callbacks on Java 18.
We now consider IllegalArgumentException as marker for incompatible lambda payload that was introduced with Java 18's reflection rewrite that uses method handles internally.

Closes #2583
2022-03-23 10:45:47 +01:00
Mark Paluch
dc609f0751 After release cleanups.
See #2554
2022-03-21 15:06:37 +01:00
Mark Paluch
df297933b5 Prepare next development iteration.
See #2554
2022-03-21 15:06:35 +01:00
Mark Paluch
b98f27e206 Release version 2.6.3 (2021.1.3).
See #2554
2022-03-21 14:58:52 +01:00
Mark Paluch
b1c1956908 Prepare 2.6.3 (2021.1.3).
See #2554
2022-03-21 14:58:27 +01:00
Mark Paluch
7f0846fcf7 Polishing.
Consistent wording for pageable and sort arguments.

See #2574
2022-03-18 15:07:19 +01:00
Diego Krupitza
35297df76c 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:19 +01:00
Mark Paluch
40475b1427 Use Java 8 to build snapshots for Artifactory.
Closes #2557
2022-03-15 14:14:40 +01:00
Mark Paluch
53d924c193 Accept Object values in QuerydslPredicateBuilder.
We now accept Object-typed values to allow broader reuse of QuerydslPredicateBuilder. The conversion into the actual value considers the origin type and checks assignability before employing the ConversionService.

Closes #2573
2022-03-10 10:21:58 +01:00
Mark Paluch
302bccae35 Consider annotated methods in AnnotationRevisionMetadata.
We now detect annotated methods.

Closes #2569
2022-03-02 14:45:41 +01:00
Mark Paluch
52012f9417 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:21 +01:00
Mark Paluch
6b414609f2 Update CI properties.
See #2554
2022-02-22 14:09:13 +01:00
Mark Paluch
75e3a4c1fa Upgrade to Maven Wrapper 3.8.4.
See #2560
2022-02-22 13:56:05 +01:00
Mark Paluch
43269c2f75 Use Java 17 to build snapshots for Artifactory.
Closes #2557
2022-02-21 14:17:57 +01:00
Mark Paluch
e6ac12fac5 After release cleanups.
See #2528
2022-02-18 10:49:01 +01:00
Mark Paluch
e4813bc1c2 Prepare next development iteration.
See #2528
2022-02-18 10:48:59 +01:00
Mark Paluch
57f8d4a3d1 Release version 2.6.2 (2021.1.2).
See #2528
2022-02-18 10:41:00 +01:00
Mark Paluch
bedf905051 Prepare 2.6.2 (2021.1.2).
See #2528
2022-02-18 10:40:39 +01:00
Mark Paluch
9e6576776a Clarify Javadoc for FallbackPageable in PageableHandlerMethodArgumentResolverSupport.
Closes #2551
2022-02-17 14:36:35 +01:00
Oliver Drotbohm
3ec40638e5 Simpler check to avoid primitive conversion in ConvertingPropertyAccessor.
We now use Spring's ClassUtils.isAssignable(…) directly. Unit tests to verify that conversion is skipped for primitive / boxed scenarios.

See #2546.
2022-02-17 14:36:35 +01:00
Christoph Strobl
e5e8e67e07 Update copyright year to 2022.
See: #2552
2022-02-17 12:44:16 +01:00
Greg L. Turnquist
73e6269533 Update CI properties.
See #2528
2022-02-14 14:39:47 -06:00
Mark Paluch
20f440afca Performance improvements in ReactiveWrappers and ConvertingPropertyAccessor.
We now cache whether types are reactive wrappers and bypass the ConversionService for assignable primitive values.

Closes #2546
2022-02-11 15:21:32 +01:00
Mark Paluch
f8e1491228 Upgrade to XMLBeam 1.4.22.
Closes #2545
2022-02-10 11:01:35 +01:00
Mark Paluch
8f7cf9cf2d Polishing.
Extract artifactory credentials into properties file.

See #2541
2022-02-04 09:57:56 +01:00
Mark Paluch
0de2d0545a Polishing.
Extract docker credentials into properties file.

See #2541
2022-02-02 10:36:43 +01:00
Greg L. Turnquist
853de50080 Externalize build properties.
See #2541.
2022-02-02 10:36:43 +01:00
Mark Paluch
e14c870e73 Refine PropertyReferenceException message.
Use single-quotes to indicate which elements belong to the underlying type and which are part of the textual message.

Closes #2395
2022-01-25 14:43:07 +01:00
Mark Paluch
65e72dc7d6 Refine Coroutine wording around when to use suspend in method declarations.
Closes #2503
2022-01-25 11:08:55 +01:00
Mark Paluch
d4dea42509 Document dynamic projections parameter detection.
Closes #2510
2022-01-25 09:50:41 +01:00
yelis913
16bbaf5886 Add missing verb to the error message.
Closes #2524
2022-01-17 11:15:27 +01:00
Christoph Strobl
f068af8b4a After release cleanups.
See #2494
2022-01-14 10:45:00 +01:00
Christoph Strobl
683f6f18c1 Prepare next development iteration.
See #2494
2022-01-14 10:44:57 +01:00
Christoph Strobl
2b001cf53c Release version 2.6.1 (2021.1.1).
See #2494
2022-01-14 10:28:56 +01:00
Christoph Strobl
43c0eb3834 Prepare 2.6.1 (2021.1.1).
See #2494
2022-01-14 10:28:25 +01:00
Mark Paluch
6dd0183b95 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:08 +01:00