You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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),....)")
The text was updated successfully, but these errors were encountered:
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),....)")
The text was updated successfully, but these errors were encountered: