Crap - Nevermind -
It seems that my database has triggers on it that insert the nextval from the sequence upon insert.
So OJB determines the sequence, and then Oracle does the same thing.
Thats why my sequences are being called twice...
--Bobby


Armin Waibel wrote:

Hi Bobby,

Bobby Lawrence wrote:

Why is it that when using the SequenceManagerNextValImpl, my sequence numbers are not consecutive?
I see 2, 4, 6, 8...
instead of 2, 3, 4, 5, ...?



OJB obtain the sequence key before the object was inserted. If you do an rollback the keys are lost. Further on the sequence base upon the top-level class, e.g. if you declare an interface Animal with "extent" classes Dog and Cat, the sequence will be used by Dog and Cat.


regards,
Armin

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-- ---------------------------- Bobby Lawrence MIS Application Developer

Jefferson Lab (www.jlab.org)

Email: [EMAIL PROTECTED]
Office: (757) 269-5818
Pager: (757) 584-5818
----------------------------





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to