You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Hans Holmlund <ha...@excito.se> on 2006/09/22 15:25:02 UTC

Problems with GenericDelegator.getNextSeqIdLong

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