spring-projects / spring-projects/spring-data-rest
Support uri associations on custom deserializer types [DATAREST-488]
@odrotbohm is already working on this.
Since Dec 31, 2020.
- Dominant language
- Java
- Stars
- 958
- Forks
- 568
- PR merge metrics
- No merged PRs in 30d
Description
Andreas Taube opened DATAREST-488 and commented
It's currently not possible to use custom deserializer POJO types with association links to real persistent entities. The AssociationUriResolvingDeserializerModifier takes only persistent entities into account. However it would be very helpful to also support custom POJO types. with entity fields (association links).
The following example describes the problem:
https://gist.github.com/ataube/bedee4779bad072a3fa9
A possible solution would maybe be a new annotation type. This annotation could be used as a marker for the entity field in the POJO and be recognised in the AssociationUriResolvingDeserializerModifier
Affects: 2.2.2 (Evans SR2)
Reference URL: https://gist.github.com/ataube/bedee4779bad072a3fa9
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.