1745 Commits

Author SHA1 Message Date
Mark Paluch
b7f2ee52cb Prepare 2.6.10 (2021.1.10).
See #2711
2022-11-18 10:21:03 +01:00
Oliver Drotbohm
d1948f97b4 Consistently apply method ordering in DefaultProjectionInformation.
Fixes #2718.

$ Conflicts:
$	src/main/java/org/springframework/data/projection/DefaultProjectionInformation.java
2022-10-17 14:30:32 +02:00
Spring Builds
51691d893d Prepare 2.6.9 (2021.1.9).
See #2709
2022-10-13 11:51:30 +00:00
Spring Builds
a4f459502d Prepare 2.6.8 (2021.1.8).
See #2690
2022-10-13 07:25:48 +00:00
Spring Builds
b69a359903 Prepare 2.6.7 (2021.1.7).
See #2656
2022-09-19 08:37:54 +00:00
Christoph Strobl
ac74d12289 Polishing.
Add issue reference and additional test for dot path resolution.

Original Pull Request: #2650
2022-08-30 16:36:19 +02:00
Mark Paluch
72d6101324 Fix argument conversion in QuerydslPredicateBuilder.
We now consider the correct argument type instead of checking assignability of the actual property type against the input value.

Closes: #2649
Original Pull Request: #2650
2022-08-30 16:32:42 +02:00
Michael Simons
275834b4d8 Specify title to auditing.auditor-aware.
Closes #2652
2022-08-05 09:10:33 +02:00
Christoph Strobl
1d2ed1149d Prepare 2.6.6 (2021.1.6).
See #2645
2022-07-15 10:33:37 +02:00
Florian Cramer
a94d6f2eaf Use TypeFilterUtils to create TypeFilters.
Original pull request: #2647.
Closes #2481
2022-06-23 14:01:40 +02:00
Mark Paluch
204d395ee3 Prepare 2.6.5 (2021.1.5).
See #2607
2022-06-20 10:58:43 +02:00
John Blum
a81b9c6769 Polish for Exception message punctuation cleanup.
Closes #2603.
2022-06-07 12:21:47 -07:00
jo
844b677010 Remove punctuation in all exception messages.
Closes #2603.
2022-06-07 12:21:34 -07:00
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
b0213c4497 Prepare 2.6.4 (2021.1.4).
See #2579
2022-04-19 12:02:43 +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
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
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
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
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
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
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
heowc
a21d59614f Add @Nullable to ParametersParameterAccessor.getValue().
Add missing Override and Nullable annotations. Update Javadoc to mention correct return value.

Closes #2506
2021-12-13 10:53:54 +01:00
Mark Paluch
8a7520091d Polishing.
Add missing override annotations.

See #2508
2021-12-09 11:23:00 +01:00
Mark Paluch
536dae1766 Introduce configuration of class loader in SimpleTypeInformationMapper.
We now support configuration of the class loader in SimpleTypeInformationMapper to use a configured class loader instead of falling always back to the default/contextual class loader. In arrangements where the contextual class loader isn't able to provide access to the desired classes (e.g. parallel Streams, general Fork/Join Thread usage) the contextual class loader may not have access to the entity types. By implementing BeanClassLoaderAware, we can now propagate a configured class loader.

Closes #2508
2021-12-09 11:22:59 +01:00
Mark Paluch
088ccc4df3 Fix argument expansion in RepositoryFactorySupport logging.
Closes #2502
2021-12-07 09:33:02 +01:00
Mark Paluch
3be7b016b0 Migrate off SLF4J to Spring JCL.
Closes #2496
2021-11-16 10:49:05 +01:00
Jens Schauder
153108a3af Prepare 2.6 GA (2021.1.0).
See #2484
2021-11-12 10:49:15 +01:00
Mark Paluch
55b83dfa83 Refine documentation for PageableExecutionUtils.
Closes #2492
2021-11-09 14:48:42 +01:00
Oliver Drotbohm
c866b42025 Polishing.
A few further tweaks: ClassTypeInformation now never unwraps the user type to consistently work with the type originally presented in the lookup. That allows us to get rid of the custom equals(…)/hashCode() methods and removes the need to deal with original and user type in the same CTI instance.

The augmented caching of PersistentEntities in AbstractMappingContext now primarily happens in doAddPersistentEntity(…). We still need to implement a cache manipulation for the case that a user type has caused the creation of a PersistentEntity first and we see a lookup for the proxy type later. Before actually processing the TypeInformation we now try to lookup an already existing PersistentEntity for the user type and augment the cache if one was found.

See #2485
Original pull request: #2486.
2021-10-27 12:19:15 +02:00
Mark Paluch
ac9d11638c Polishing.
Remove isProxyTypeInformation from TypeInformation. Use computeIfAbsent to fall back to user type information when attempting to add a entity to the MappingContext.

See #2485
Original pull request: #2486.
2021-10-27 09:19:36 +02:00