spring-projects / spring-projects/spring-data-rest

Support uri associations on custom deserializer types [DATAREST-488]

Open
#865 0 comments 0 reactions 1 assignee View on GitHub

@odrotbohm is already working on this.

Since Dec 31, 2020.

type: enhancement
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.