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

[WebFlux - Warehouse] Make sure the sequence generator is used for the primary key in Warehouse project #24

Open
thepassenger-hub opened this issue May 8, 2021 · 0 comments

Comments

@thepassenger-hub
Copy link
Collaborator

Since we didn't override the save method in the product repository, we don't know how the primary key is inserted (sequence, table incremental, etc...). Due to the fact that more tables will be added in the future, we should make sure the pk_sequence inserted in the schema is the one used to generate the pk. In MVC this was done with the @Generator annotation, in WebFlux the annotation doesn't exist so we may need to add the query @query("INSERT into product(id,....) VALUES (NEXTVAL(pk_sequence),....)")

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