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

JPA CrudRepository Doesn't Render Child Elements [DATAREST-273]

Open
#653 3 comments 0 reactions 1 assignee View on GitHub

@odrotbohm is already working on this.

Since Dec 31, 2020.

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

Description

Brandon Gaisford opened DATAREST-273* and commented

Child entity not rendered by CrudRepository.

Steps to reproduce:

  1. Unpack attached zip file
  2. mvn compile
  3. mvn package
  4. mvn jetty:run-war
  5. Point browser to http://localhost:8080
  6. Point browser to http://localhost:8080/equipments

Expected result:

Entity Equipment child property equipmentCategory should be rendered in JSON output, but it isn't. This error occurs in 2.0.0.RELEASE, and 2.0.1.BUILD-SNAPSHOT, it was working in 2.0.0.RC1


Affects: 2.0 GA (Codd), 2.0.1 (Codd SR1)

Attachments:

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.