spring-projects / spring-projects/spring-data-rest
Reload an entity (and its relationship fields) after save. Refresh method missing. [DATAREST-1445]
Open
@odrotbohm is already working on this.
Since Dec 31, 2020.
type: bug
- Dominant language
- Java
- Stars
- 958
- Forks
- 568
- PR merge metrics
- No merged PRs in 30d
Description
Andrea Bevilacqua opened DATAREST-1445 and commented
After saving an entity with the method .save of CrudRepository, it does not retrive the "entire/complete" persisted entity: the fields of a ManyToOne relationship field, are null.
In the Reference URL (StackOverflow) there is a detailed explanation
Reference URL: https://stackoverflow.com/questions/45491551/refresh-and-fetch-an-entity-after-save-jpa-spring-data-hibernate
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.