Commit Graph

876 Commits

Author SHA1 Message Date
Mark Paluch
ca3eb9b0ca Release version 4.4 GA (2024.1.0).
See #2424
2024-11-15 14:10:52 +01:00
Oliver Drotbohm
e3308c584e Fix HttpMessageConverter lookup in PersistentEntityResourceHandlerMethodArgumentResolver.
We now ask the candidate converters whether they can read RepresentationModel instead of the domain type as that's the key type we register the individual ObjectMappers for in Spring HATEOAS.

Fixes: GH-2425.
Related ticket: GH-2419.
2024-11-15 08:39:11 +01:00
Mark Paluch
a66d2fbdad Prepare next development iteration.
See #2417
2024-10-18 12:49:40 +02:00
Mark Paluch
e3ae00c201 Release version 4.4 RC1 (2024.1.0).
See #2417
2024-10-18 12:47:01 +02:00
Oliver Drotbohm
0d0b26b8e0 Switch HttpMessageConverter lookup to test for domain type instead of PersistentEntityResource.
Fixes GH-2419.
2024-10-04 14:06:44 +02:00
Oliver Drotbohm
64ece65d8b Tweak HAL-FORMS setup to fall back on HAL as media type if no templates registered.
Fixes GH-2418.
2024-09-18 15:25:41 +02:00
Jens Schauder
b89d52af40 Prepare next development iteration.
See #2387
2024-09-13 12:42:27 +02:00
Jens Schauder
059ca8052e Release version 4.4 M1 (2024.1.0).
See #2387
2024-09-13 12:39:33 +02:00
Mark Paluch
c62ddeb498 Prepare next development iteration.
See #2382
2024-05-17 11:51:33 +02:00
Mark Paluch
456e10d208 Release version 4.3 GA (2024.0.0).
See #2382
2024-05-17 11:49:25 +02:00
Mark Paluch
6cd6fb3337 Prepare next development iteration.
See #2376
2024-04-12 10:52:58 +02:00
Mark Paluch
7f20e3c3f6 Release version 4.3 RC1 (2024.0.0).
See #2376
2024-04-12 10:50:42 +02:00
Mark Paluch
667513e652 Prepare next development iteration.
See #2368
2024-03-15 11:09:57 +01:00
Mark Paluch
8f4de9db8e Release version 4.3 M2 (2024.0.0).
See #2368
2024-03-15 11:07:31 +01:00
Christoph Strobl
e6e87e88c5 Prepare next development iteration.
See #2333
2024-02-16 14:41:24 +01:00
Christoph Strobl
f7da997870 Release version 4.3 M1 (2024.0.0).
See #2333
2024-02-16 14:37:38 +01:00
Oliver Drotbohm
5c764464cf Properly append all superfluous elements to an array during merge patch.
Fixes GH-2357.
2024-01-19 18:24:20 +01:00
Oliver Drotbohm
41de5ad983 Tread entities nested in arrays like PUT for merge patch requests.
Fixes GH-2358.
2024-01-19 18:23:08 +01:00
Oliver Drotbohm
6cec482bb4 Fix broken merge of nested arrays.
Fixes GH-2350.
2024-01-15 17:41:36 +01:00
Mark Paluch
ae851d878f Extend license header copyright years to 2024.
See #2349
2024-01-02 14:42:06 +01:00
Oliver Drotbohm
667a49b3ab Polish Javadoc.
Related ticket GH-1947.
2023-12-15 12:33:48 +01:00
Oliver Drotbohm
30fdbd4949 Fix potential NullPointerException in ProjectionSerializer.
Fixes GH-1947.
2023-12-15 12:21:52 +01:00
Oliver Drotbohm
19c3179b31 Fix BasePathAwareHandlerMappingUnitTests.
Fixes GH-2338.
2023-12-13 17:39:25 +01:00
Mark Paluch
144717e50a Prepare next development iteration.
See #2321
2023-11-17 14:33:25 +01:00
Mark Paluch
7248dc016a Release version 4.2 GA (2023.1.0).
See #2321
2023-11-17 14:29:59 +01:00
Oliver Drotbohm
5b05e59ce4 Runtime hints to include rest-messages files.
Fixes GH-2330.
2023-11-16 15:11:58 +01:00
Oliver Drotbohm
d6f0f3aa99 Properly merge non-entity arrays.
Fixes #2325.
2023-11-16 15:01:03 +01:00
John Blum
22428a51a7 Prepare next development iteration.
See #2310
2023-10-13 08:51:59 -07:00
John Blum
cb4277ec11 Release version 4.2 RC1 (2023.1.0).
See #2310
2023-10-13 08:44:25 -07:00
Mark Paluch
cc7060a9a6 Prepare next development iteration.
See #2303
2023-09-15 14:59:01 +02:00
Mark Paluch
597ee76830 Release version 4.2 M3 (2023.1.0).
See #2303
2023-09-15 14:59:01 +02:00
Oliver Drotbohm
1fadf164ae 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:46 +02:00
Julia Lee
388475d40f Prepare next development iteration.
See #2290
2023-08-18 08:59:36 -04:00
Julia Lee
b4ae1635e1 Release version 4.2 M2 (2023.1.0).
See #2290
2023-08-18 08:50:32 -04:00
Mark Paluch
69f6edbabd Prepare next development iteration.
See #2260
2023-07-14 14:57:11 +02:00
Mark Paluch
108ab2af8f Release version 4.2 M1 (2023.1.0).
See #2260
2023-07-14 14:53:19 +02:00
Mark Paluch
aa7262b038 Delombok code.
Closes #2286
2023-07-07 14:51:03 +02:00
Oliver Drotbohm
36300cfa1f 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:38:28 +02:00
Oliver Drotbohm
d6d8c50592 Avoid manually handling additional primitive elements in collection merging for PATCHes.
Fixes #2261.
2023-05-23 16:22:24 +02:00
Christoph Strobl
73738bb3c0 Prepare next development iteration.
See #2255
2023-05-12 14:18:52 +02:00
Christoph Strobl
e1877c3f9f Release version 4.1 GA (2023.0.0).
See #2255
2023-05-12 14:14:39 +02:00
Oliver Drotbohm
9020e1d10d Upgrade optional Jackson/JPA integration to Hibernate 6.
Fixes #2234.
2023-05-03 23:01:57 +02:00
Will Fleury
816ca84e70 Populate custom ExceptionHandlerExceptionResolver with ApplicationContext.
Fixes #2245.
Original pull request #2246.
2023-05-03 17:05:52 +02:00
Greg L. Turnquist
3a7c81df17 Prepare next development iteration.
See #2243
2023-04-14 11:59:58 -05:00
Greg L. Turnquist
2039a15e59 Release version 4.1 RC1 (2023.0.0).
See #2243
2023-04-14 11:54:00 -05:00
Christoph Strobl
e5bc3be69a Prepare next development iteration.
See #2229
2023-03-20 15:05:34 +01:00
Christoph Strobl
00884c09c7 Release version 4.1 M3 (2023.0.0).
See #2229
2023-03-20 15:01:48 +01:00
Oliver Drotbohm
e4bca534bf Support to receive aggregate references as request parameters.
We now support using AggregateReference as type to bind request parameters taking URIs pointing to related aggregates. The default resolution will try to resolve the entire URI via UriToEntityConverter but one can also provide a function that can extract any part of the URI to be then resolved into either an identifier, aggregate instance or jMolecules Association against the ConversionService.

Fixes #2239.
2023-03-19 23:56:39 +01:00
Oliver Drotbohm
6d0034f15f Support for query methods returning a Slice.
Built on the the just introduced RepresentationModelAssembler implementations based on Slice in Spring HATEOAS and Spring Data Commons we now support returning a SlicedModel from the controller backing search resources ultimately triggering repository query methods.

The introduction triggered the refactoring to introduce RepresentationModelAssemblers (RMA) to remove the need for controllers inheriting from AbstractRepositoryController to access RepresentationModel assembly functionality. RMA acts as a facade for both Paged-/SlicedResourceAssembler as well as PersistentEntityResourceAssembler.

Fixes #2235.
2023-03-02 17:20:09 +01:00
Oliver Drotbohm
fb1924286a 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:19 +01:00