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

PATCH does not work against Entities with @ManyToOne dependecies #38

Open
guai opened this issue Mar 16, 2021 · 1 comment
Open

PATCH does not work against Entities with @ManyToOne dependecies #38

guai opened this issue Mar 16, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@guai
Copy link

guai commented Mar 16, 2021

AFAICS the code first reads a JPA entity, then merges PATCH data with it, and then writes it all back to the DB.
But @ManyToOne is not being read unless $expand=* present.
So if nothing is in the PATCH data for those foreign keys then it end up writing NULLs to foreign keys and fail on NOT NULL constraints.

@rzozmann rzozmann added the enhancement New feature or request label Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants
@guai @rzozmann and others