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

Can enable upsert? #285

Open
ghost opened this issue Mar 31, 2024 · 3 comments
Open

Can enable upsert? #285

ghost opened this issue Mar 31, 2024 · 3 comments

Comments

@ghost
Copy link

ghost commented Mar 31, 2024

enable upsert for PATCH and PUT request?

@wog48
Copy link
Contributor

wog48 commented Apr 10, 2024

Actually, the JPA Processor it self does not handle Create, Update, Delete or Upsert requests. The provided JPAExampleCUDRequestHandler shall support rapide prototyping and is not foreseen for productive usage. In case you are in a hurry, copy the class and adopt implementation of updateEntity accordingly.

@ghost
Copy link
Author

ghost commented Apr 10, 2024

Changing updateEntity is what I am doing.
While according to OData protocol: https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html#sec_UpsertanEntity, upsert is defined. So it will be better if it can be supported originally from this JPAExampleCUDRequestHandler?

@wog48
Copy link
Contributor

wog48 commented Apr 11, 2024

I agree, it would better. Therefore I marked this as enhancement. Nevertheless, I like to point out, that JPAExampleCUDRequestHandler is just for prototyping.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant