Problems with GenericDelegator.getNextSeqIdLong

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Problems with GenericDelegator.getNextSeqIdLong

Hans Holmlund
I don't know if its a bug or a "feature", but the method
getNextSeqIdLong(String seqName, long staggerMax) in GenericDelegator
does not behave as expected. As long as the server is not restarted the
method gives you an id incremented by staggerMax (I use 1 here). But if
the server is restarted it gives you the number stored in
SEQUENCE_VALUE_ITEM.
Why can't it always be incremented by staggerMax?

Thanks,

Hans Holmlulnd