Hi Thomas, thanks for the quick anwer! The tables that throws this exceptions don't have any autoincrement field on the database! So i can't declare this attribute?!
Or am i missing something? Thanks Claudio Romano -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 07, 2004 11:47 AM To: OJB Users List Subject: Re: SequenceManagerMySQLImpl Hi Claudio, To work with sequence numbering you have to declare the respective attribute as autoincrement="true". If you don't do this you can not expect the sequence manager to work for those tables! Thomas Claudio Romano wrote: > Hi all, > > i updated OJB from the rc3 to rc5. Now i have a problem with tables > without an > auto increment field. The Method "afterStore" in the > SequenceManagerMySQLImpl > class alway throws ArrayIndexOutOfBoundsException on these tables. > > Am i doing something wrong? > > This change causes my exception: > > diff -u -r1.14 -r1.15 > public void afterStore(JdbcAccess dbAccess, ClassDescriptor cld, Object > obj) > throws SequenceManagerException > { > > - FieldDescriptor fd = cld.getAutoIncrementField(); > + FieldDescriptor fd = cld.getAutoIncrementFields()[0]; > > > > Thanks > Claudio Romano > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]