843 Commits

Author SHA1 Message Date
Mark Paluch
e1fa21772b Prepare next development iteration.
See #2322
2023-11-17 10:25:34 +01:00
Mark Paluch
e7494c250d Release version 3.7.18 (2021.2.18).
See #2322
2023-11-17 10:22:31 +01:00
Oliver Drotbohm
6326fe1ac7 Properly merge non-entity arrays.
Fixes #2325.
2023-11-16 15:22:13 +01:00
Mark Paluch
9607d33ed9 Prepare next development iteration.
See #2307
2023-10-13 10:54:08 +02:00
Mark Paluch
edc9de48c8 Release version 3.7.17 (2021.2.17).
See #2307
2023-10-13 10:51:14 +02:00
Mark Paluch
6ab08add86 Prepare next development iteration.
See #2300
2023-09-15 09:45:35 +02:00
Mark Paluch
66087ad16b Release version 3.7.16 (2021.2.16).
See #2300
2023-09-15 09:42:27 +02:00
Oliver Drotbohm
571dd40b82 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:21 +02:00
Mark Paluch
4cc091039c Prepare next development iteration.
See #2288
2023-08-18 10:03:11 +02:00
Mark Paluch
ffc1ae7054 Release version 3.7.15 (2021.2.15).
See #2288
2023-08-18 09:59:28 +02:00
Mark Paluch
285d73fccb Prepare next development iteration.
See #2272
2023-07-14 10:35:30 +02:00
Mark Paluch
b62b5f2333 Release version 3.7.14 (2021.2.14).
See #2272
2023-07-14 10:31:35 +02:00
Mark Paluch
600644e043 Prepare next development iteration.
See #2257
2023-06-16 14:59:10 +02:00
Mark Paluch
b0ac606019 Release version 3.7.13 (2021.2.13).
See #2257
2023-06-16 14:56:15 +02:00
Mark Paluch
011aad0d66 Polishing.
Fix backport to use isPresent instead of isEmpty.

See #2264
2023-06-15 17:11:27 +02:00
Oliver Drotbohm
47724b3cba 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-13 11:22:43 +02:00
Greg L. Turnquist
93ef0a22f7 Exclude byte-buddy from hibernate-core.
To ensure testing works properly with Java 17, we must exclude older version of byte-buddy from hibernate-core.

Related: DATAREST-1362, #1725.
2023-05-23 17:19:43 +02:00
Oliver Drotbohm
2e9cd79468 Avoid manually handling additional primitive elements in collection merging for PATCHes.
Fixes #2261.
2023-05-23 16:21:48 +02:00
Christoph Strobl
7034b6d580 Prepare next development iteration.
See #2253
2023-05-12 10:21:24 +02:00
Christoph Strobl
7b70321ce8 Release version 3.7.12 (2021.2.12).
See #2253
2023-05-12 10:18:02 +02:00
Greg L. Turnquist
a72dca8972 Prepare next development iteration.
See #2241
2023-04-14 09:25:59 -05:00
Greg L. Turnquist
5e76f8f4f6 Release version 3.7.11 (2021.2.11).
See #2241
2023-04-14 09:19:57 -05:00
Christoph Strobl
fd3af78f3b Prepare next development iteration.
See #2236
2023-03-20 13:48:09 +01:00
Christoph Strobl
da5b0422ff Release version 3.7.10 (2021.2.10).
See #2236
2023-03-20 13:43:05 +01:00
Mark Paluch
f09b122abf Prepare next development iteration.
See #2226
2023-03-03 10:22:36 +01:00
Mark Paluch
05d56947d3 Release version 3.7.9 (2021.2.9).
See #2226
2023-03-03 10:19:08 +01:00
Oliver Drotbohm
a71ffd65c7 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:50:55 +01:00
Oliver Drotbohm
fdb9c660ee Register MVC validator with Spring Data REST HandlerAdapter.
Fixes: #967.
Original pull request: 2108.
2023-02-21 15:46:51 +01:00
zhengchalei
0bbc8c0f05 Fix doc link end label in ResourceStatus.
Fixes #2139
2023-02-21 14:20:24 +01:00
Oliver Drotbohm
585049b66c 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:03 +01:00
Oliver Drotbohm
a027727a46 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:31:43 +01:00
Oliver Drotbohm
5b592b25ab 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:44:30 +01:00
Mark Paluch
c2b37b2e29 Prepare next development iteration.
See #2217
2023-02-17 10:11:44 +01:00
Mark Paluch
dd36389398 Release version 3.7.8 (2021.2.8).
See #2217
2023-02-17 10:08:25 +01:00
Mark Paluch
1929667d99 Prepare next development iteration.
See #2202
2023-01-13 10:35:33 +01:00
Mark Paluch
94a0ee00d4 Release version 3.7.7 (2021.2.7).
See #2202
2023-01-13 10:32:46 +01:00
Mark Paluch
59765bf41f Extend license header copyright years to 2023.
See #2210
2023-01-02 09:52:07 +01:00
Mark Paluch
51ba1491db Prepare next development iteration.
See #2188
2022-11-18 10:55:36 +01:00
Mark Paluch
85b2a9eee2 Release version 3.7.6 (2021.2.6).
See #2188
2022-11-18 10:45:33 +01:00
Spring Builds
7518b58742 Prepare next development iteration.
See #2187
2022-10-13 13:46:40 +00:00
Spring Builds
edb0665061 Release version 3.7.5 (2021.2.5).
See #2187
2022-10-13 13:24:04 +00:00
Spring Builds
b221ddae7c Prepare next development iteration.
See #2178
2022-10-13 09:23:44 +00:00
Spring Builds
d1913cfbb8 Release version 3.7.4 (2021.2.4).
See #2178
2022-10-13 08:59:54 +00:00
Spring Builds
b2ec5ddad0 Prepare next development iteration.
See #2160
2022-09-19 12:00:10 +00:00
Spring Builds
984e1ffc00 Release version 3.7.3 (2021.2.3).
See #2160
2022-09-19 11:38:44 +00:00
Oliver Drotbohm
2ad081f75b Improve JSON Patch implementation.
Refactor JSON Patch application implementation to improve the property detection for which values are supposed to be set.

Fixes #2177.
2022-09-19 10:21:02 +02:00
Christoph Strobl
828fedd2ef Prepare next development iteration.
See #2154
2022-07-15 11:24:05 +02:00
Christoph Strobl
e4c294f5d8 Release version 3.7.2 (2021.2.2).
See #2154
2022-07-15 11:08:28 +02:00
Oliver Drotbohm
d130d61e2e Polish annotation attribute aliasing in RepositoryRestController.
Related ticket: #2087.
2022-07-14 17:46:04 +02:00
Oliver Drotbohm
f89a458bc7 Forward StringValueResolver to DelegatingHandlerMappings targets.
RepositoryRestMvcConfiguration now implements EmbeddedValueResolver to forward the StringValueResolver given to both BasePathAwareHandlerMapping and RepositoryRestHandlerMapping.

Related ticket: #2087.
2022-07-13 23:43:37 +02:00