Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reload an entity (and its relationship fields) after save. Refresh method missing. [DATAREST-1445] #1804

Open
spring-projects-issues opened this issue Aug 4, 2017 · 3 comments
Assignees
Labels
type: bug A general bug

Comments

@spring-projects-issues
Copy link

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

@claudioivp
Copy link

the best approach still is the referenced at stack overflow url?

@odrotbohm
Copy link
Member

I've commented on the post. tl;dr: almost everything about the question and previous answers is wrong.

@claudioivp
Copy link

I've commented on the post. tl;dr: almost everything about the question and previous answers is wrong.

Very insightful comments. Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A general bug
Projects
None yet
Development

No branches or pull requests

3 participants