You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by lalitha devi <la...@yahoo.co.uk> on 2004/06/04 06:15:42 UTC
Sequence no generation using SequenceManagerNextValImpl
Hi,
I am trying to generate sequence no. through sequence created in Oracle using SequenceManagerNextValImpl class.
When i try to implement in my program, it is succesfully generation sequence no's. But the problem is :
it is generating no.s starting from 1 but not from the last value generated by the sequence.
Can anyone help me ..
Thanks
Lalitha
---------------------------------
Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now
Re: Sequence no generation using SequenceManagerNextValImpl
Posted by Armin Waibel <ar...@apache.org>.
Hi,
lalitha devi wrote:
> Hi,
>
> I am trying to generate sequence no. through sequence created in Oracle using SequenceManagerNextValImpl class.
>
> When i try to implement in my program, it is succesfully generation sequence no's. But the problem is :
> it is generating no.s starting from 1 but not from the last value generated by the sequence.
>
hmm, do you mean that OJB drop the sequence and start again with a new
one? Currently OJB only discard a sequence before it try create a new
one for the given field descriptor and OJB create a new sequence only
when it can't get the next sequence value.
I will change behaviour of SequenceManagerNextValImpl, so that a created
sequences never be discarded.
regards,
Armin
> Can anyone help me ..
> Thanks
> Lalitha
>
>
> ---------------------------------
> Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org