852 Commits

Author SHA1 Message Date
Mark Paluch
544caf6351 Extend license header copyright years to 2024.
See #2346
2024-01-02 09:24:13 +01:00
Mark Paluch
aade86611a Prepare next development iteration.
See #2318
2023-11-17 11:00:16 +01:00
Mark Paluch
feb3e31b69 Release version 4.0.12 (2022.0.12).
See #2318
2023-11-17 10:57:14 +01:00
Oliver Drotbohm
791cf870ef Runtime hints to include rest-messages files.
Fixes GH-2330.
2023-11-16 15:12:30 +01:00
Oliver Drotbohm
fc7452bce7 Properly merge non-entity arrays.
Fixes #2325.
2023-11-16 15:05:40 +01:00
Mark Paluch
3b0d5b3ea8 Prepare next development iteration.
See #2308
2023-10-13 11:44:27 +02:00
Mark Paluch
364d20692c Release version 4.0.11 (2022.0.11).
See #2308
2023-10-13 11:41:41 +02:00
Mark Paluch
478132100b Prepare next development iteration.
See #2301
2023-09-15 10:20:50 +02:00
Mark Paluch
5d3dd4d027 Release version 4.0.10 (2022.0.10).
See #2301
2023-09-15 10:17:46 +02:00
Oliver Drotbohm
8f46d9f413 Reinstate new object addition for collections in patch operations.
The removal of manual collection value appendance for primitives in the context of GH-2261 lead to complex object to be appended onto a collection not being deserialized at all. This deserialization is now reinstantiated with the value to be added looked up by reading the parent node into the collections element type using a JSON Pointer expression of /$propertyName/$index. This is done to make sure that @JsonDeserialize annotations on the property kick in for the deserialization of the individual elements.

We now also shortcut the entire merge algorithm for collections that are empty, contain primitives or enums.

Fixes GH-2287.
2023-08-30 21:34:29 +02:00
Mark Paluch
0e34906a02 Prepare next development iteration.
See #2289
2023-08-18 10:46:29 +02:00
Mark Paluch
809e040847 Release version 4.0.9 (2022.0.9).
See #2289
2023-08-18 10:43:12 +02:00
Mark Paluch
c16dc73569 Prepare next development iteration.
See #2273
2023-07-14 11:25:31 +02:00
Mark Paluch
d75ee395a2 Release version 4.0.8 (2022.0.8).
See #2273
2023-07-14 11:22:38 +02:00
Mark Paluch
a5bb1fad51 Prepare next development iteration.
See #2258
2023-06-16 15:43:09 +02:00
Mark Paluch
f86e4a62be Release version 4.0.7 (2022.0.7).
See #2258
2023-06-16 15:39:46 +02:00
Oliver Drotbohm
226f0833b7 Fix regression in PUT handling for empty nested documents.
The fix for #2174 introduced a bug for our PUT handling of nested documents in case the target object's field value is null as it would only apply the nested value if all Optionals were present. This is, of course not the case.

Fixes #2264.
2023-06-12 11:41:44 +02:00
Oliver Drotbohm
a2a66040aa Avoid manually handling additional primitive elements in collection merging for PATCHes.
Fixes #2261.
2023-05-23 15:54:32 +02:00
Christoph Strobl
0c6b3fb5cb Prepare next development iteration.
See #2254
2023-05-12 11:11:30 +02:00
Christoph Strobl
9181023a9d Release version 4.0.6 (2022.0.6).
See #2254
2023-05-12 11:08:07 +02:00
Will Fleury
37794446a3 Populate custom ExceptionHandlerExceptionResolver with ApplicationContext.
Fixes #2245.
Original pull request #2246.
2023-05-03 17:18:28 +02:00
Greg L. Turnquist
867f14feca Prepare next development iteration.
See #2242
2023-04-14 10:25:00 -05:00
Greg L. Turnquist
8a90565336 Release version 4.0.5 (2022.0.5).
See #2242
2023-04-14 10:19:15 -05:00
Christoph Strobl
200f308a40 Prepare next development iteration.
See #2237
2023-03-20 14:26:19 +01:00
Christoph Strobl
68b677e205 Release version 4.0.4 (2022.0.4).
See #2237
2023-03-20 14:22:48 +01:00
Mark Paluch
b542bef517 Prepare next development iteration.
See #2227
2023-03-03 11:02:46 +01:00
Mark Paluch
071c78a15d Release version 4.0.3 (2022.0.3).
See #2227
2023-03-03 10:59:33 +01:00
Oliver Drotbohm
3def6a180d Use FormattingConversionService in JSON Patch binding.
We no pipe the Spring MVC ConversionService into the JSON Patch path binding. That usually is a FormattingConversionService at runtime and also supports the conversion of dates.

The ConversionServices is configured into the BindContext(Factory) we use for binding. The context then exposes the EvaluationContext set up with it.

Fixes #2233.
2023-02-21 18:43:29 +01:00
Oliver Drotbohm
ece8108811 Register MVC validator with Spring Data REST HandlerAdapter.
Fixes: #967.
Original pull request: 2108.
2023-02-21 15:46:18 +01:00
zhengchalei
b50b0f8dd1 Fix doc link end label in ResourceStatus.
Fixes #2139
2023-02-21 14:19:56 +01:00
Oliver Drotbohm
2f1771ee4f Avoid obsolete inspection of DefaultedPageable.
The instance can never be null and thus we don't actually have to check for that.
2023-02-21 14:13:11 +01:00
Oliver Drotbohm
cd3f9cb462 Adapt to renamed properties by using MappedProperties in association deserialization.
Revert the changes that employed manual annotation lookup as that would cause invalid associations of fields and accessor methods for properties shadow renamed. Instead, we now use MappedProperties that already contains a mapping between the Jackson field names and Spring Data property names.

Fixes: #2165

$ Conflicts:
$	spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/PersistentEntityJackson2Module.java
$	spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/PersistentEntityJackson2ModuleUnitTests.java
2023-02-21 13:30:37 +01:00
Oliver Drotbohm
f2c9ec32e2 Properly deep-merge nested documents on PUT.
This is needed to consider read-only properties within those objects as those would otherwise get overridden.

Fixes: #2174
2023-02-21 10:43:25 +01:00
Mark Paluch
bcb673da66 Prepare next development iteration.
See #2219
2023-02-17 11:02:25 +01:00
Mark Paluch
8727d9e542 Release version 4.0.2 (2022.0.2).
See #2219
2023-02-17 10:59:28 +01:00
Oliver Drotbohm
8819cdc741 Register StdValueInstantiator._constructorArguments for reflection.
The field is looked up by reflection in ValueInstantiatorCustomizer.

Fixes #2213.
2023-01-20 16:35:46 +01:00
Mark Paluch
46f26a5221 Prepare next development iteration.
See #2203
2023-01-13 11:43:30 +01:00
Mark Paluch
010a647337 Release version 4.0.1 (2022.0.1).
See #2203
2023-01-13 11:40:51 +01:00
Oliver Drotbohm
aa1685d95d Register per-repository pattern for observability purposes.
The standard Spring MVC observability integration registers the plain request pattern for observations. For our repository controllers that would result in one pattern registered for all individual repository resources (e.g. /{repository}/{id} etc.). However, the insights users would like to gain rather follows the individual repositories exposed. That's why we have so far exposed repository specific path pattern (/myrepo/{id}) via a custom request attribute. To adhere to the new observability integration of Spring Framework 6, we need to expose that particular pattern on the ServerRequestObservationContext, too.

Fixes #2212.
2023-01-09 15:46:12 +01:00
Mark Paluch
4335e81d70 Extend license header copyright years to 2023.
See #2209
2023-01-02 09:50:14 +01:00
Christoph Strobl
be0e5a931f Add Nullable annotation to parameter of overridden equals method.
Closes: #2196
Original pull request: #2197
2022-12-02 11:16:34 +01:00
Mark Paluch
ce0500eed2 Prepare next development iteration.
See #2190
2022-11-18 14:30:30 +01:00
Mark Paluch
eb10fb1e41 Release version 4.0 GA (2022.0.0).
See #2190
2022-11-18 14:26:23 +01:00
Mark Paluch
c3c9da67f2 Upgrade to JPA API 3.1 and Servlet API 6.1.
Closes #2195
2022-11-07 15:54:22 +01:00
Mark Paluch
da86021c12 Prepare next development iteration.
See #2192
2022-11-04 15:26:38 +01:00
Mark Paluch
fd5715c829 Release version 4.0 RC2 (2022.0.0).
See #2192
2022-11-04 15:23:17 +01:00
Christoph Strobl
b3e8489085 Added AOT metadata.
We now register @BasePathAwareController instances for class proxy generation. Also, we scan the packages of repository definitions for projection interfaces to register reflective access for them.

Fixes #2183.
2022-10-27 11:50:57 +02:00
Mark Paluch
9c05312d36 Prepare next development iteration.
See #2180
2022-10-13 17:31:15 +02:00
Mark Paluch
47f2ac1a8a Release version 4.0 RC1 (2022.0.0).
See #2180
2022-10-13 17:24:25 +02:00
Spring Builds
0450c88dfe Prepare next development iteration.
See #2162
2022-09-19 14:38:58 +00:00