spring-projects / spring-projects/spring-data-rest
OneToOne Mapping in JPA Entity not rendered [DATAREST-242]
Open
@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
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.