Hi Salvatore,
I have a working theory on how to achieve this.
In a very simple way , without extending your schema and chaning anything else, you can simply run an ALTER Table command to have your sequence which generates IDs to restart with 10000.
The command would have to run on the DB and the syntax would be something like :
ALTER sequence <Sequence name> MINVALUE 0 MAXVALUE 2147000000 RESTART WITH 10000 CACHE 1000 CYCLE;
This will reset the Sequence to restart with 10,000 and will start assigning IDs incrementally after 10,000.
Please bear in mind though , that this change will have an effect across all schemas which uses this sequence and the change will not only be limited to the operation schema.
If you want to make the change effective only in this schema you will have to implement a couple of more complex changes which include
1>. Create a new sequence on DB and also create a custom function for generating IDs for this sequence. Make sure to have the "restart with" parameter set at 10000 or after creating the Sequence , use the ALTER command to reset the sequence to start with 10,000.
2>. Go to your operation schema extend it and make sure that autoPk="true" and pkSequence="<new_sequence>" is set.
Your operation schema would then start using this new sequence with IDs starting from 10,000.
Regards,
Adhiyan