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

Changing the Relation of an unmanaged unexposed Entity via PATCH is not possible in 4.2.7 #2410

Open
HannesRakete opened this issue Aug 9, 2024 · 0 comments
Assignees
Labels
status: waiting-for-triage An issue we've not yet triaged

Comments

@HannesRakete
Copy link

Example project to be found here: https://github.com/HannesRakete/spring-data-rest-patch

In spring boot 3.2.7 it is possible, to modify the relation of an unexposed Entity with PATCH on the spring data rest controller for the parent Entity. Same PATCH request in 3.3.2 returns 2xx but does not change the relation.

In an entity-graph, with 3 entities and the "middle" one not being exposed by spring data rest, it is now not possible any more, to change the relation to another entity.

Rough ERD: SchoolClass -1---n- Pupil -n---1- Course

SchoolClass and Course are exposed via spring data rest, Pupil is not. We did not find a way to manage the relationship between Pupil and Course through the spring data rest endpoint for SchoolClass.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting-for-triage An issue we've not yet triaged
Projects
None yet
Development

No branches or pull requests

3 participants