Hi,


Hi all, I am new to OJB and using OJB with Struts. When i need to include the auto increment field in my Repository.XML file and try to insert as well as get the values from the MySQL database using that auto increment field, i reach with an error. But when i remove that autoincrement field from repository.xml, i am able to insert and get the values from the database.

   When i read the OJB Doc it states that MySQL is something special and it
does not contain sequence manager.

Don't know if I understand your question. You can choose different SequenceManager implementations, e.g. a High/Low based implementation or an in memory sequence manager, ...
In http://db.apache.org/ojb/sequencemanager.html you can find information about how OJB handles sequence key generation.


Only if you want to let MySQL Identity columns do the key generation you have to use a special SequenceManager implementation (SequenceManagerNativeImpl).

regards,
Armin


Regards,


bill

_________________________________________________________________
Easiest Money Transfer to India. Send Money To 6000 Indian Towns.
http://go.msnserver.com/IN/42198.asp Easiest Way To Send Money Home!




--------------------------------------------------------------------- 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]



Reply via email to