Petr,
Are you looking at the values in the SEQUENCE table, or at the actual generated
IDs?
thanks,
-marina
Kenneth Saks wrote:
> Petr Blaha wrote:
>
> > Hi Ken,
>
> Hi Petr,
>
> I don't work on the persistence implementation :-) Marina?
>
> --ken
>
> >
> > I'm using GeneratorType.AUTO type for Id of my bean. I know that
> > server is responsible for generating of new ID. I realized that new
> > table SEQUENCE is created and id is generated correctly for my beans.
> > However, ids are not in ascending order. It means that first time I
> > get 10 then 20,... 251 ... Why the server doesn't use 1,2,3,.....
> > Is this sequence table uses for all beans? For instance, I have in
> > SEQUENCE table these rows:
> >
> > SEQ_GEN 350
> > SEQ_GEN 200
> >
> > Can you point me to some docs that describe the alghoritm of this and
> > other type like TABLE, ....?
> >
> > Thanks,
> > Petr