Commit Graph

2969 Commits

Author SHA1 Message Date
Oliver Drotbohm b09c503480 Polishing.
Ternary ifs and less nesting.

Related: GH-3094
Original pull request: GH-2865
2024-05-14 11:38:36 +02:00
Yanming Zhou ae76d08403 Use Pageable.unpaged(sort) for sorted unpaged pageable.
The (Reactive)PageableHandlerMethodArgumentResolver now falls back to a unpaged Pageable instance with a resolved sort if the the resolved Pageable is unpaged.

Fixes: GH-3094
Original pull request: GH-2865
2024-05-14 11:38:04 +02:00
Alessandro Rubino c2a475b42c Update links to direct section links.
Closes #3095
2024-05-14 09:54:43 +02:00
Mark Paluch 2f43bd593e Limit generics length to declared length.
Also, rename method to reflect what it actually returns.
Document generic usage constraints in RepositoryFactoryBeanSupport subclasses.

Closes #3089
2024-05-08 09:54:09 +02:00
Mark Paluch 18d31ec61d Document how projection types relate to the entity type hierarchy.
Closes #3092
2024-05-07 15:17:43 +02:00
Mark Paluch b1a5fc460b Apply Kotlin Value Class unboxing to generated Property Accessors.
Unwrap wrapped value types if necessary when using generated property accessors.

Closes #3087
2024-04-29 09:12:57 +02:00
Mark Paluch 00d03c595b Polishing.
Add missing Javadoc and Serial annotations. Simplify code.

See #3081
2024-04-24 09:38:51 +02:00
Jan Kurella 7bac883930 Avoid NullPointerException´ and IllegalArgumentException for control flow in Sort`.
Checking for null explicitly is cheap and prevents two unnecessary Exception
objects creations.

Closes #3081
2024-04-24 09:38:15 +02:00
Mark Paluch 027b8c2ad2 Fix StackOverflowError in TypeDiscoverer comparison.
We now resort to String-based comparison if a generic cannot be resolved. Previously, unresolved generics caused an infinite recursion.

Closes #3084
2024-04-23 10:17:53 +02:00
Alexander Münch 2f9427a94b Fix typo in object-mapping.adoc.
Closes #3076
2024-04-15 15:15:16 +02:00
Mark Paluch 5d067c56cd Polishing.
Reformat code. Use explicit local variable types instead of var.

See #3075
2024-04-15 15:11:42 +02:00
Yanming Zhou 797066dcc0 Use -1 instead of null as initial OffsetScrollPosition.
1. Use type `long` instead of `Long` to keep it consistent with previous version.
2. Position function is simplified to `offset+1`.

Closes #3075
2024-04-15 15:07:46 +02:00
Mark Paluch 1771647cb2 After release cleanups.
See #3065
2024-04-12 10:52:59 +02:00
Mark Paluch 04c5135b98 Prepare next development iteration.
See #3065
2024-04-12 10:52:58 +02:00
Mark Paluch dd42cb2a51 Release version 3.3 RC1 (2024.0.0).
See #3065
3.3.0-RC1
2024-04-12 10:50:41 +02:00
Mark Paluch 2f4ab246f2 Prepare 3.3 RC1 (2024.0.0).
See #3065
2024-04-12 10:50:27 +02:00
Mark Paluch 855194a13d Polishing.
Introduce method to obtain a position function from OffsetScrollPosition. Tweak documentation wording.

See #3070
Original pull request: #3072
2024-04-10 10:41:52 +02:00
Christoph Strobl eb184669db Revise OffsetScrollPosition to use zero-based indexesAlign Offset Scrolling Position.
Closes #3070
Original pull request: #3072
2024-04-10 10:41:35 +02:00
Oliver Drotbohm 88011e6003 Support advanced generics redeclarations in RepositoryFactoryBeanSupport extensions.
Spring Data modules might override, and, by that, fix some of the generic type parameters exposed by RepositoryFactoryBeanSupport. We now more thoroughly walk through them to consider the ones expanded already and automatically expand the remaining ones with either the types found on the user repository interface or the unresolved type variable.

Ticket: GH-3074.
2024-04-09 19:25:38 +02:00
Oliver Drotbohm dd081d4614 More precise type information of factory bean definitions.
We now also forward the domain and identifier information detected on the repository to the target type declared for the repository factory bean definition.

Fixes GH-3074.
2024-04-09 13:39:04 +02:00
Oliver Drotbohm 1c8471c384 Polishing.
Related ticket GH-3066.
2024-03-25 22:20:17 +01:00
Oliver Drotbohm cf82e0fcda Cache query method metadata to avoid repeated calculations.
We now calculate information about query methods in RepositoryInformationSupport lazily and keep it around to avoid repeated calculations that involve traversals over declared method and Stream allocations.

Fixes GH-3066.
2024-03-25 22:20:12 +01:00
Mark Paluch 3aba5eb1eb After release cleanups.
See #3045
2024-03-15 11:09:58 +01:00
Mark Paluch 240be26dd0 Prepare next development iteration.
See #3045
2024-03-15 11:09:57 +01:00
Mark Paluch 4e57283e3a Release version 3.3 M2 (2024.0.0).
See #3045
3.3.0-M2
2024-03-15 11:07:31 +01:00
Mark Paluch 8db7ee426c Prepare 3.3 M2 (2024.0.0).
See #3045
2024-03-15 11:07:09 +01:00
Mark Paluch f8f9610b59 Add equals/hashCode support for Unpaged.
Closes #3061
2024-03-12 13:56:14 +01:00
Mark Paluch ee75b8cd78 Polishing.
Simplify code.

Original Pull Request: #3059
2024-03-08 14:27:37 +01:00
Mark Paluch 0766f2e56b Do not create persistent properties for Map and Collection-like entities.
These types are expected to behave like maps and collections and should not carry properties.
The only exception are types implementing Streamable as Streamable can be used in domain types.

Resolves: #3056
Original Pull Request: #3059
2024-03-08 14:27:29 +01:00
Mark Paluch 5502fcf893 Revert workaround for Java 8 ConcurrentHashMap bug.
Closes #3060
2024-03-07 16:07:24 +01:00
Mark Paluch e15c83467b Refine Query by Example string matching to call out store-specific limitations.
Closes #3058
2024-03-05 10:23:20 +01:00
Mark Paluch e32b2668a1 Polishing.
Handle warnings. Remove redundant code in DefaultReactiveEntityCallbacks.

Original pull request: #3053
See #3055
2024-03-01 11:47:40 +01:00
mawen12 939c6143c1 Remove redundant code in DefaultEntityCallbacks#callback.
Original pull request: #3053
Closes #3055
2024-03-01 11:45:43 +01:00
Mark Paluch f7a1066143 Consider nested generics in TypeDiscoverer equality comparison.
We now compare nested generics wrapped into TypeInformation to consider type equality for deeply parametrized types.

Previously, we resolved type parameters to Class so Foo<List<String>> was considered equal to Foo<List<Map>> as the type parameter of the first nesting level was erased.

Closes #3051
2024-02-27 11:18:29 +01:00
Mark Paluch 047b6be83f Polishing.
Tiny naming tweaks.

See #3041
Original pull request: #3048
2024-02-21 14:19:51 +01:00
Christoph Strobl 9d73853244 Default generic type arguments when resolving KType from a Class.
We now fill up missing KTypeProjection arguments with star because the Kotlin Reflection.typeOf resolution fails if arguments are not provided.

Closes #3041
Original pull request: #3048
2024-02-21 14:19:51 +01:00
Mark Paluch 75728ac0be Fix Javadoc build.
Remove package-info for package without sources.

See #3045
2024-02-19 16:12:38 +01:00
Christoph Strobl 684f418fba After release cleanups.
See #2981
2024-02-16 14:41:25 +01:00
Christoph Strobl 1a11eba8d6 Prepare next development iteration.
See #2981
2024-02-16 14:41:23 +01:00
Christoph Strobl 033738e4be Release version 3.3 M1 (2024.0.0).
See #2981
3.3.0-M1
2024-02-16 14:37:37 +01:00
Christoph Strobl b90c8853cb Prepare 3.3 M1 (2024.0.0).
See #2981
2024-02-16 14:36:59 +01:00
Mark Paluch c02ff121d7 Force update on CI build.
See #2981
2024-02-16 09:46:17 +01:00
Mark Paluch 9563f637fd Document converter types supported by CustomConversions.
Closes #3040
2024-02-14 09:24:50 +01:00
Mark Paluch 67163d02e3 Evolve ValueExpressionParser.
Introduce literal, expression and placeholder variants. Add parser for composite expressions.

Closes #2369
Original pull request: #3036
2024-02-12 15:35:19 +01:00
Christoph Strobl 9f13e5450d Add support for Value Expressions.
We now support Value Expressions such as `#{1+1}-${spring.application.name:fallback-value}` that are composed of SpEL expressions, literals and Property Placeholders.

See #2369
Original pull request: #3036
2024-02-12 15:35:18 +01:00
Eric Haag 5ec3c609f6 Update Revved up by Develocity badge.
Closes #3032
2024-02-08 10:57:37 +01:00
Mark Paluch f6eacd208a Polishing.
Add additional tests, add Javadoc to explain isEnclosingClassParameter() behavior.

See #3038
Original pull request: #3039
2024-02-08 10:25:21 +01:00
Christoph Strobl 45b810a83c Use enclosing class constructor parameter only for non-static inner classes.
Closes #3038
Original pull request: #3039
2024-02-08 10:25:21 +01:00
Mark Paluch eb4b0b4309 Refine Artifactory build name.
See #2981
2024-01-31 15:10:19 +01:00
Mark Paluch 098d779177 Polishing.
Javadoc, static imports.

See #3033
Original pull request: #3034
2024-01-24 16:18:19 +01:00