Mark Paluch
fa92489ee5
Prepare 3.1.7 (2023.0.7).
...
See #2979
2023-12-15 13:14:51 +01:00
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.
2023-12-12 21:12:45 +01:00
Oliver Drotbohm
02fccfed25
Avoid records as cache keys for performance reasons.
...
Fixes GH-2997.
2023-12-05 14:17:27 +01:00
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.
2023-12-01 21:29:44 +01:00
Mark Paluch
dbd789ae93
Prepare 3.1.6 (2023.0.6).
...
See #2954
2023-11-17 13:37:50 +01:00
Jens Schauder
3ab1f33292
Fix broken logging message.
...
Closes #2977
2023-11-16 16:08:34 +01:00
Mark Paluch
f6142e1edc
Remove superfluous @NonNull annotations.
...
Closes #2976
2023-11-13 14:40:42 +01:00
Mark Paluch
15298b1bfc
Document public ScrollPosition factory methods.
...
Closes #2975
2023-11-13 08:46:29 +01:00
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
2023-11-12 11:06:24 +01:00
Mark Paluch
a3f4ac6b51
Polishing.
...
Extract singular/plural form into String.format(…) for easier readability.
See #2967
2023-11-09 14:48:24 +01:00
Luis Carilla Ternero
1f40542d3d
Refine repository scanning finished log message.
...
Log the plural form accordingly.
Closes #2967
2023-11-09 14:47:00 +01:00
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
2023-11-08 10:41:38 +01:00
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 .
2023-11-08 08:43:52 +01:00
Mark Paluch
be43b61834
Fix include/exclude filters documentation.
...
Closes #2969
2023-11-06 08:30:28 +01:00
Mark Paluch
af3f2d6382
Polishing.
...
Tweak Javadoc. Refine tests.
See #2491
2023-10-17 11:50:25 +02:00
Jens Schauder
ddeb70cd7b
Clarify behavior of PropertyPath.
...
Update tests and documentation.
Closes #2491
2023-10-17 11:50:25 +02:00
mawen12
91d2fdc3f7
Add parameter to exception message format.
...
Closes : #2956
Original pull request: #2958
2023-10-17 11:25:39 +02:00
John Blum
a8679c639f
Prepare 3.1.5 (2023.0.5).
...
See #2934
2023-10-13 08:00:47 -07:00
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 .
2023-09-21 16:12:26 +02:00
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 .
2023-09-20 14:22:16 +02:00
Mark Paluch
4192cdf2ad
Prepare 3.1.4 (2023.0.4).
...
See #2907
2023-09-15 10:52:10 +02:00
Yanming Zhou
3198757775
Correct method parameter type in tests.
...
Before this commit, actual method parameter type doesn't match method signature.
Closes #2928
2023-09-14 10:52:30 +02:00
Mark Paluch
b6f6f5a7aa
Prepare 3.1.3 (2023.0.3).
...
See #2880
2023-08-18 14:03:47 +02:00
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
2023-08-16 15:11:18 +02:00
shin-mallang
3145a09f46
Document event publication from repository delete methods in AbstractAggregateRoot.
...
Added additional comment regarding registerEvent and andEvent in AbstractAggregateRoot.
Closes : #2903
2023-08-16 10:41:43 +02:00
John Blum
45c8cb9804
Fix line break in CustomConversions.collectPotentialConverterRegistrations(..) method.
...
Closes #2902
2023-08-15 16:30:14 -07:00
Mark Paluch
3f9cd4c7a0
Polishing.
...
Tweak Javadoc wording, revert visibility changes, add missing Override annotations.
See #2882
2023-07-20 15:37:55 +02:00
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
2023-07-20 15:37:55 +02:00
Mark Paluch
9207e22632
Return the number of SpEL expressions created by SpelExtractor.
...
Closes #2885
2023-07-20 14:06:23 +02:00
Mark Paluch
fa07def51f
Prepare 3.1.2 (2023.0.2).
...
See #2864
2023-07-14 13:52:53 +02:00
Mark Paluch
f58ce36b86
Polishing.
...
Introduce dedicated methods to express object creation intents. Remove unnecessary casts.
See #2837
Original pull request: #2838
2023-07-12 15:03:45 +02:00
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
2023-07-12 15:03:45 +02:00
Yanming Zhou
8b86fb8879
Fix outdated Javadoc.
...
Closes #2860
2023-07-04 15:55:04 +02:00
Mark Paluch
9af41c9729
Retain direction for empty KeysetScrollPosition.
...
We now retain the direction when an empty KeysetScrollPosition is created.
Closes #2840
2023-07-04 15:52:44 +02:00
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 .
2023-07-01 01:56:34 +02:00
John Blum
c771fba956
Prepare 3.1.1 (2023.0.1).
...
See #2829
2023-06-16 08:05:06 -07:00
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 .
2023-06-16 10:14:39 +02:00
Christoph Strobl
8671c00e05
WindowIterator should emit items in order when scrolling backwards.
...
Closes #2857
Original pull request: #2858
2023-06-16 10:14:39 +02:00
Oliver Drotbohm
4e3c06dbb8
Improve reference documentation on repository methods triggering event publication.
...
Fixes #2855 .
2023-06-14 16:09:17 +02:00
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
2023-06-14 09:25:35 +02:00
Mark Paluch
602cd28142
Extend documentation on sorting for Keyset scrolling.
...
Closes #2846
2023-06-13 12:01:09 +02:00
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
2023-06-13 11:52:25 +02:00
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
2023-06-02 10:33:51 +02:00
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
2023-05-30 10:16:38 +02:00
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
2023-05-17 10:29:28 +02:00
Christoph Strobl
807323d115
Prepare 3.1 GA (2023.0.0).
...
See #2821
2023-05-12 14:14:06 +02:00
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
2023-05-11 16:13:19 +02:00
Mark Paluch
1ba2932275
Polishing.
...
Reorder methods.
See #2823
2023-05-11 16:13:18 +02:00
Jens Schauder
fd0964ab72
Make all args Sort.Order constructor public.
...
The other constructors are already public, and this one is actually needed by subclasses.
Closes #2823
2023-05-11 16:12:59 +02:00
Mark Paluch
69dbb75896
Polishing.
...
Remove superfluous declarations, fix toString description.
See #2824
2023-05-11 11:10:44 +02:00