In SequenceUtil.java file line #112 is responsible to generate the first
sequence id for all the tables where primary key is auto generated.
By changing this value I can change the start sequence Id for the tables.
Here is the line from that file:

public static final long startSeqId = 10000;

Isn't it good to move this value in some property file?

The reason for this change is as follows:
Suppose a I am using OFBiz 4.0.
Now I am migrating data which has Party Records in the range of 50,000 or
more.
The sequence ids for party is having sequence id started from 10000, 10001
... and so on.
And the client is having similar range of data for Order and other
associated entities.

This move will help us to do changes in property file instead of changing
java code snippet.

Thoughts?
--
Ashish

Reply via email to