Found it:

isis.persistor.datanucleus.impl.datanucleus.valuegeneration.increment.allocationSize=1

in persistor_datanucleus.properties.

Solved



> Op 29 jan. 2015, om 16:22 heeft Dan Haywood <[email protected]> 
> het volgende geschreven:
> 
> Hi Victor,
> 
> That's really a JDO/DataNucleus question; Isis just delegates to
> DataNucleus to "do its thang".
> 
> This page might help [1].  FWIW, we tend to use IDENTITY rather than
> INCREMENT.
> 
> Cheers
> Dan
> 
> 
> [1]
> http://www.datanucleus.org/products/datanucleus/jdo/value_generation.html#increment
> 
> On 29 January 2015 at 15:10, Victor Oomens <[email protected]> wrote:
> 
>> Hi,
>> 
>> I’ve defined an incremental field in a domain object like this:
>> 
>> @Persistent(valueStrategy = IdGeneratorStrategy.INCREMENT)
>> private long invoicenumber;
>> 
>> This works fine, but there’s a small problem. Sometimes the NEXT_VALUE
>> skips a couple of numbers. Where did I go wrong?
>> 
>> Cheers,
>> 
>> Victor
>> 
>> 

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to