Skip to content
This repository was archived by the owner on Mar 27, 2025. It is now read-only.

Conversation

4nt0ineB
Copy link

@4nt0ineB 4nt0ineB commented Oct 10, 2024

The Product PanacheEntity use a generated sequence, but manually adding products with hardcoded id in import.sql bypass the sequence increment, causing a conflict when POSTing a product from the swagger.
I managed to finish the course with a workaround, using nextval and altering the sequence to keep simple ids (1,2,3..).

@njlbenn
Copy link
Contributor

njlbenn commented Oct 11, 2024

Nice. I like the ALTER SEQUENT ... INCREMENT BY 1 workaround.

Before it was using a generated sequence and I replaced them with hardcoded IDs to simplify Exercise 14 e56fc91 .

Can you edit the exercise 14 README file so that the instructions say what it said before? e56fc91#diff-ae26915143c5e0794771625dcfae5d075105a5f3870ceb1c7af28f6574313a8e (i.e. to use curl to get the product IDs)

njlbenn
njlbenn previously approved these changes Oct 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants