Mark Paluch
aa1d7da238
Prepare 3.1.8 (2023.0.8).
...
See #3008
2 years ago
Mark Paluch
3f53f33de5
Extend license header copyright years to 2024.
...
See #3013
2 years ago
Mark Paluch
fa92489ee5
Prepare 3.1.7 (2023.0.7).
...
See #2979
2 years ago
Oliver Drotbohm
3e0ab7aa1f
Revert "Properly render sort variable variable as composite."
...
This reverts commit 40edfdfdd7 as the change has too many side effects to be included in a bugfix version.
Related ticket: GH-2531.
2 years ago
Oliver Drotbohm
02fccfed25
Avoid records as cache keys for performance reasons.
...
Fixes GH-2997.
2 years ago
Julien Béti
40edfdfdd7
Properly render sort variable variable as composite.
...
HateoasSortHandlerMethodArgumentResolver now renders the sort template variable as composite to properly indicate that it can be submitted multiple times.
Fixes GH-2531.
Original pull request GH-2945.
2 years ago
Mark Paluch
dbd789ae93
Prepare 3.1.6 (2023.0.6).
...
See #2954
2 years ago
Jens Schauder
3ab1f33292
Fix broken logging message.
...
Closes #2977
2 years ago
Mark Paluch
f6142e1edc
Remove superfluous `@NonNull` annotations.
...
Closes #2976
2 years ago
Mark Paluch
15298b1bfc
Document public `ScrollPosition` factory methods.
...
Closes #2975
2 years ago
Jens Schauder
0c9f47703d
Revert "AbstractPersistentProperty now considers the owner for equals."
...
This reverts commit 93913b04c3 .
The change caused build failures for Spring Data JDBC.
See #2972
Original pull request #2973
See spring-projects/spring-data-relational#1657
2 years ago
Mark Paluch
a3f4ac6b51
Polishing.
...
Extract singular/plural form into String.format(…) for easier readability.
See #2967
2 years ago
Luis Carilla Ternero
1f40542d3d
Refine repository scanning finished log message.
...
Log the plural form accordingly.
Closes #2967
2 years ago
Jens Schauder
93913b04c3
AbstractPersistentProperty now considers the owner for equals.
...
This makes a difference when a property is declared in a superclass of two entities.
In such a case the property is the same, but the owner is different.
Closes #2972
Original pull request #2973
See https://github.com/spring-projects/spring-data-relational/issues/1657
2 years ago
Oliver Drotbohm
6bd28a115a
Simplify DefaultMethodInvokingMethodInterceptor.
...
As our baseline is now Java 17, we can remove all indirections to produce a Lookup previously needed to support Java 8 and 9.
Fixes #2971 .
2 years ago
Mark Paluch
be43b61834
Fix include/exclude filters documentation.
...
Closes #2969
2 years ago
Mark Paluch
af3f2d6382
Polishing.
...
Tweak Javadoc. Refine tests.
See #2491
2 years ago
Jens Schauder
ddeb70cd7b
Clarify behavior of `PropertyPath`.
...
Update tests and documentation.
Closes #2491
2 years ago
mawen12
91d2fdc3f7
Add parameter to exception message format.
...
Closes : #2956
Original pull request: #2958
2 years ago
John Blum
a8679c639f
Prepare 3.1.5 (2023.0.5).
...
See #2934
2 years ago
Oliver Drotbohm
11f0d244a2
Fix detection of @DomainEvents and @AfterDomainEventPublication on native.
...
We now unconditionally process the aggregate root types declared on repositories for @Reflective annotations, which @DE and @ADEP got meta-annotated with.
Fixes #2939 .
2 years ago
Oliver Drotbohm
f9bc97f20f
Properly emit domain events from calls to saveAll(…).
...
We now treat CrudRepository.saveAll(…) properly by unwrapping the given *Iterable*. This previously already worked for collections handed into the method but not for types only implementing Iterable directly (like Page or Window).
Fixes #3153 .
Related tickets #2931 , #2927 .
2 years ago
Mark Paluch
4192cdf2ad
Prepare 3.1.4 (2023.0.4).
...
See #2907
2 years ago
Yanming Zhou
3198757775
Correct method parameter type in tests.
...
Before this commit, actual method parameter type doesn't match method signature.
Closes #2928
2 years ago
Mark Paluch
b6f6f5a7aa
Prepare 3.1.3 (2023.0.3).
...
See #2880
2 years ago
Mark Paluch
bf7e64fc75
Replace Stream usage with iteration to avoid non-null requirements.
...
SpelEvaluator now iterates over the parameter map instead of using the Java 8 Stream API. Previously, expressions resulting in a null value failed in the collector as Java 8 streams require non-null values for map values.
Closes #2904
2 years ago
shin-mallang
3145a09f46
Document event publication from repository delete methods in `AbstractAggregateRoot`.
...
Added additional comment regarding registerEvent and andEvent in AbstractAggregateRoot.
Closes : #2903
2 years ago
John Blum
45c8cb9804
Fix line break in CustomConversions.collectPotentialConverterRegistrations(..) method.
...
Closes #2902
2 years ago
Mark Paluch
3f9cd4c7a0
Polishing.
...
Tweak Javadoc wording, revert visibility changes, add missing Override annotations.
See #2882
2 years ago
Thach Le
4e528db223
Refine parameter and field names to align with `PageRequest` property names.
...
Align parameter naming with properties to not mix using page with pageNumber, size with pageSize names.
Closes #2882
2 years ago
Mark Paluch
9207e22632
Return the number of SpEL expressions created by `SpelExtractor`.
...
Closes #2885
2 years ago
Mark Paluch
fa07def51f
Prepare 3.1.2 (2023.0.2).
...
See #2864
2 years ago
Mark Paluch
f58ce36b86
Polishing.
...
Introduce dedicated methods to express object creation intents. Remove unnecessary casts.
See #2837
Original pull request: #2838
2 years ago
Christoph Strobl
4d038ff1cb
Cache invalid persistent property paths.
...
Cache failing resolution attempts to avoid reiterating on the same paths over and over again.
Closes #2837
Original pull request: #2838
2 years ago
Yanming Zhou
8b86fb8879
Fix outdated Javadoc.
...
Closes #2860
3 years ago
Mark Paluch
9af41c9729
Retain direction for empty `KeysetScrollPosition`.
...
We now retain the direction when an empty KeysetScrollPosition is created.
Closes #2840
3 years ago
Oliver Drotbohm
8b2eb8faff
Fix query execution mode detection for aggregate types that implement Streamable.
...
We now short-circuit the QueryMethod.isCollectionQuery() algorithm in case we find the concrete domain type or any subclass of it.
Fixes #2869 .
3 years ago
John Blum
c771fba956
Prepare 3.1.1 (2023.0.1).
...
See #2829
3 years ago
Mark Paluch
60877d70c7
Polishing.
...
Use ReverseListIterator instead of Stream API to reduce overhead. ListIterator provides means to iterate backwards so we're wrapping the existing iterator.
See #2857 .
Original pull request: #2858 .
3 years ago
Christoph Strobl
8671c00e05
WindowIterator should emit items in order when scrolling backwards.
...
Closes #2857
Original pull request: #2858
3 years ago
Oliver Drotbohm
4e3c06dbb8
Improve reference documentation on repository methods triggering event publication.
...
Fixes #2855 .
3 years ago
Mark Paluch
3281837cbd
Use merged bean definitions for EntityCallback type lookup.
...
We now use the merged bean definition to resolve the defined EntityCallback type.
Previously, we used just the bean definition that might have contained no type hints because of ASM-parsed configuration classes.
Closes #2853
3 years ago
Mark Paluch
602cd28142
Extend documentation on sorting for Keyset scrolling.
...
Closes #2846
3 years ago
Mark Paluch
af2d97abc6
Consider KeysetScrollPosition direction in WindowIterator.
...
We now consider the scroll direction in the iterator to properly continue Keyset backward scrolling.
Closes #2851
3 years ago
Mark Paluch
f582e5bf7f
Unwrap nested collections in default Querydsl binding.
...
When binding values to collection-like paths, we now unwrap potentially double-wrapped collections as QuerydslPredicateBuilder attempts to convert the binding value to the type of the path.
Our default is a contains binding for single elements.
Closes #2834
3 years ago
Mark Paluch
fec8337d38
Remove `CloseableIterator` from supported repository return types.
...
`CloseableIterator` wasn't intended to be here in the first place as it is only an intermediate type.
Closes #2835
3 years ago
Mark Paluch
54ffee0ab8
Refine allocation of DefaultMethodInvokingMethodInterceptor.
...
We now reduce allocations of DefaultMethodInvokingMethodInterceptor by reusing DefaultMethodInvokingMethodInterceptor within a ProxyProjectionFactory. We also reduced allocations during default method discovery and reuse the default methods information within the projection information cache.
Closes #2831
3 years ago
Christoph Strobl
807323d115
Prepare 3.1 GA (2023.0.0).
...
See #2821
3 years ago
Mark Paluch
46ff9d25a6
Allow reversing `Sort`.
...
We now allow reversing the sort order of Sort instances to flip ASC and DESC sort orders.
Closes #2805
3 years ago
Mark Paluch
1ba2932275
Polishing.
...
Reorder methods.
See #2823
3 years ago