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

OneToOne Mapping in JPA Entity not rendered [DATAREST-242]

Open
#625 5 comments 0 reactions 1 assignee View on GitHub

@odrotbohm is already working on this.

Since Dec 31, 2020.

in: repository status: feedback-provided type: bug
Dominant language
Java
Stars
958
Forks
568
PR merge metrics
No merged PRs in 30d

Description

Johannes Hiemer opened DATAREST-242 and commented

I have a relationship defined between two entities. EntityA and SubEntityB

@OneToOne(cascade = CascadeType.ALL)
@PrimaryKeyJoinColumn
private SubEntityB subEntityB;

As shown in the Snippet above the Entity is mapped via PrimaryKeyJoinColumn. The problem is, that the relation is neither included in the output object, nor mapped via URL mapping in the outputs link section. All other relations are rendered.


Affects: 2.0 M1 (Codd)

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.