1406 Commits

Author SHA1 Message Date
Oliver Drotbohm
a5a8748774 Upgrade to HAL Explorer 0.16.0.
Fixes #1996.
2021-04-13 08:45:54 +02:00
Oliver Drotbohm
6c007487c7 RepositoryRestConfigurer are again used in declared order.
4b36f79 introduced a regression by consuming registered RepositoryRestConfigurer instances via ApplicationContext.getBeansOfType(…).values() which, unlike the previous consumption via a List<RRC> in an @Bean method, is losing the declared order of the RRC instances as ….getBeansOfType() is a Map.

We now rather use an ObjectProvider and its ….orderedStream() method to consume the registered instances ordered properly.

Fixes #1995.
2021-04-09 12:42:24 +02:00
Oliver Drotbohm
b4b8fdfee0 Support aggregate reference resolution for DTOs.
Introduce AggregateReferenceResolvingModule to be registered with the default ObjectMapper instance that will allow to materialize aggregate instances from URIs for incoming web requests. We do not apply this for aggregate roots themselves as they're already handled by the AssociationUriResolvingDeserializerModifier.
2021-04-07 20:07:54 +02:00
Oliver Drotbohm
21ed68262f Properly handle associations in nested entities.
Nested entities that contain a reference to an aggregate root get a link to that attached to their representation. Previously, the creation of those links assumed that the reference is a materialized instance of the remote aggregate. That's now altered to be able to deal with associations, use identifiers directly or materialize to an intermediate aggregate instance to potentially use a custom lookup.
2021-04-07 20:07:53 +02:00
Oliver Drotbohm
20cb33512e Fixed potential NullPointerException in PersistentPropertyResourceMapping.isExported().
Fixes GH-1994.
2021-04-07 20:07:53 +02:00
Mark Paluch
904f99f31d Updated changelog.
See #1988
2021-03-31 18:30:45 +02:00
Mark Paluch
d69942c43a After release cleanups.
See #1976
2021-03-31 17:24:06 +02:00
Mark Paluch
8e42a2a221 Prepare next development iteration.
See #1976
2021-03-31 17:24:04 +02:00
Mark Paluch
d77e5192d8 Release version 3.5 RC1 (2021.0.0).
See #1976
2021-03-31 17:05:09 +02:00
Mark Paluch
dda2402ac2 Prepare 3.5 RC1 (2021.0.0).
See #1976
2021-03-31 17:04:35 +02:00
Mark Paluch
83008b26c1 Updated changelog.
See #1976
2021-03-31 17:04:31 +02:00
Oliver Drotbohm
9f8071a0d7 Remove legacy support for well-known XML configuration file import.
We now don't import XML configuration located in classpath*:META-INF/spring-data-rest/**/*.xml anymore. This is primarily to not trigger the XML subsystem in Spring Framework which we don't need at all actually. Users still relying on that import can just declare the import themselves.
2021-03-26 13:54:13 +01:00
Oliver Drotbohm
4b36f794dc Avoid RepositoryRestConfigurerDelegate exposed as bean.
Improving the configuration situation for RRCD, whose bean declaration required access to all RepositoryRestConfigurer instances while implementing the interface itself, too.  We now rather hide the creation of that instance in a Lazy as it doesn't need any kind of lifecycle management.
2021-03-26 13:48:38 +01:00
Oliver Drotbohm
17538c65d7 Enable rendering as HAL FORMS.
We're now registering an HttpMessageConverter to render requests for HAL FORMS using the HalFormsConfiguration present in the application.

We're currently not adding any affordances yet. The change solely enables user code to add affordances explicitly, e.g. via RepresentationModelProcessor implementations.

Fixes: #1991.
2021-03-25 18:01:54 +01:00
Mark Paluch
c89369b410 After release cleanups.
See #1986
2021-03-17 11:30:30 +01:00
Mark Paluch
0f93b050ce Prepare next development iteration.
See #1986
2021-03-17 11:30:29 +01:00
Mark Paluch
54696d4d5f Release version 3.5 M5 (2021.0.0).
See #1986
2021-03-17 11:17:50 +01:00
Mark Paluch
952ec110b0 Prepare 3.5 M5 (2021.0.0).
See #1986
2021-03-17 11:17:27 +01:00
Mark Paluch
0b92ac3e34 Updated changelog.
See #1986
2021-03-17 11:17:23 +01:00
Mark Paluch
0ffe1f1c3c Updated changelog.
See #1979
2021-03-17 11:03:40 +01:00
Mark Paluch
a649968cc2 Updated changelog.
See #1973
2021-03-17 10:35:13 +01:00
Greg L. Turnquist
015335d9ef Replace RepositoryRestConfigurerAdapter in the ref docs.
RepositoryRestConfigurerAdapter was superceded by RepositoryRestConfigurer and its default methods a long time ago. Update the ref docs to properly use the new interface.

Fixes #1983.
2021-03-16 15:09:59 +01:00
Toon Geens
51206fbffd Fix RepositoryEntityLinks in the documentation.
Replace `RepositoryEntityLinks.linkToSingleResource()` to `RepositoryEntityLinks.linkToItemResource()`.

Fixes #1984.
2021-03-15 11:29:01 -05:00
Oliver Drotbohm
65d4d71895 Support for jMolecules Identifier types.
We now properly handle jMolecules Identifier instances by integration with the corresponding Converter implementations provided by the jmolecules-spring integrations library.

Fixes GH-1982.
2021-03-08 20:31:58 +01:00
Oliver Drotbohm
e9bc98a1e9 #1980 - RepositoryEntityLinks now overrides ….linkForItemResource(…). 2021-02-24 17:57:46 +01:00
Oliver Drotbohm
cb75eaee90 #1974 - Polishing.
Deprecated configuration methods on RepositoryRestConfiguration for better naming.
2021-02-18 14:04:34 +01:00
Oliver Drotbohm
517bb5f202 #1974 - Improve default LinkRelationProvider setup to also consider @Relation.
RepositoryRestConfiguration now defaults the LinkRelationProvider instance to a delegating one considering both AnnotationLinkRelationProvider and EvoLinkRelationProvider so that @Relation annotations on entity types.
2021-02-18 14:04:34 +01:00
Christoph Strobl
dc0e0bbcef After release cleanups.
See #1978
2021-02-18 11:35:22 +01:00
Christoph Strobl
08ca20422d Prepare next development iteration.
See #1978
2021-02-18 11:35:21 +01:00
Christoph Strobl
d03e364294 Release version 3.5 M4 (2021.0.0).
See #1978
2021-02-18 11:25:13 +01:00
Christoph Strobl
466932508d Prepare 3.5 M4 (2021.0.0).
See #1978
2021-02-18 11:24:46 +01:00
Christoph Strobl
e82c066000 Updated changelog.
See #1978
2021-02-18 11:24:45 +01:00
Christoph Strobl
488d87e6d8 Updated changelog.
See #1975
2021-02-18 11:18:29 +01:00
Christoph Strobl
98a9354e82 After release cleanups.
See #1954
2021-02-17 14:17:49 +01:00
Christoph Strobl
d5d2659a24 Prepare next development iteration.
See #1954
2021-02-17 14:17:48 +01:00
Christoph Strobl
44b93173a7 Release version 3.5 M3 (2021.0.0).
See #1954
2021-02-17 14:00:09 +01:00
Christoph Strobl
0b14d0b60b Prepare 3.5 M3 (2021.0.0).
See #1954
2021-02-17 13:59:43 +01:00
Christoph Strobl
b9547f82c7 Updated changelog.
See #1954
2021-02-17 13:59:42 +01:00
Christoph Strobl
33b2a06594 Updated changelog.
See #1953
2021-02-17 13:49:20 +01:00
Christoph Strobl
93648a4a9e Updated changelog.
See #1918
2021-02-17 11:34:25 +01:00
Christoph Strobl
3fbf991e17 Updated changelog.
See #1943
2021-02-17 10:58:24 +01:00
Oliver Drotbohm
9ee4c62b01 #1971 - Upgrade MongoDB tests to 4.2 drivers. 2021-02-16 16:46:21 +01:00
Greg L. Turnquist
0890a0134d Fix reference docs to use proper RepositoryDetectionStrategy enum values.
Closes #1970.
2021-02-08 11:24:09 -06:00
Greg L. Turnquist
e86cce056b Drop links to old /understanding pages of spring.io.
The spring.io/understanding pages no longer exist, so we need to drop all links to those pages.

Closes #1967.
2021-02-03 11:21:52 -06:00
Greg L. Turnquist
38e8445046 Update materials to replace JIRA with GitHub issues.
Change issue links from JIRA to GitHub issues.

Closes #424.
2021-01-29 12:46:11 -06:00
Oliver Drotbohm
cd4b43554f Update to HAL Explorer 0.15.0.
See GH-1957.
2021-01-29 15:28:37 +01:00
Oliver Drotbohm
0295573047 Avoid late registration of PathPatternParser on DelegatingHandlerMapping.
Instead of registering the PathPatternParser on DelegatingHandlerMapping via WebMvcConfigurer.configurePathMatch(…) we now consume the bean exposed in context of the fix for spring-projects/spring-framework#26427.

We also use the newly introduced RequestMappingInfo.mutate() to add our customizations of the produces clause for Spring Data REST's mappings.

Fixes GH-1965.
2021-01-26 22:45:33 +01:00
Oliver Drotbohm
5dc7536c2c Adapt to API changes in HalHandlerInstantiator.
Fixes GH-1964.
2021-01-25 23:37:22 +01:00
René Gielen
f615cc6e18 Reflect Spring HATEOAS 1.0+ API changes in the reference docs.
* Response customization
* JSON output customization

Closes #1962
2021-01-25 11:19:20 -06:00
barthr
9d77d0d814 Fix typo in reference docs.
Closes #1961
2021-01-25 10:57:35 -06:00