I'm doing a desktop program in java, with the ID of a product being incremented automatically by SERIAL.
However, when I delete some element or all, the value of the sequence remains the last one that was added on, and I have to go there in the bank and change that value by hand.
Does anyone have an idea of a trigger or can I change this in the same sequence's own settings?